.. _functx_between-exclusive: ======================== functx:between-exclusive ======================== Se um valor está entre dois valores dados Descrição ~~~~~~~~~ A função functx:between-exclusive devolve true se $value estiver entre $minValue e $maxValue, sem incluir os limites. Se os valores forem de tipos que não se comparam, dá erro. Se $value for a sequência vazia, devolve false. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - value:string() - o valor a testar * - minValue:string() - o valor mínimo * - maxValue:string() - o valor máximo Exemplos ~~~~~~~~ .. list-table:: :widths: 25 25 50 :header-rows: 1 * - **XPath** - **Resultado** - **Explicação** * - functx:between-exclusive(55, 1, 1000) - true - 55 está entre 1 e 1000. * - functx:between-exclusive(1, 1, 1000) - false - Os limites ficam de fora, então 1 não conta. * - functx:between-exclusive(1200, 1, 1000) - false - 1200 é maior que 1000. * - functx:between-exclusive('b', 'a', 'c') - true - Strings também são comparadas; 'b' vem depois de 'a' e antes de 'c'. * - functx:between-exclusive(xs:date('2004-10-31'), xs:date('2004-10-15'), xs:date('2004-11-01')) - true - Datas também são comparadas. * - functx:between-exclusive('a', 1, 1000) - Error - Strings não podem ser comparadas com inteiros. Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_between-inclusive`.