op:boolean-less-than

If $boolean-var1 equals the boolean value: false and $boolean-var2 equals the boolean value: true, the boolean value: true is returned. For all other cases, the boolean value: false is returned as shown in the following table.

If boolean-var1 equals ...
And boolean-var2 equals ...
The boolean-less-than Operator Returns ...

false

true

true—The boolean value of $boolean-var1 is less than the boolean value of $boolean-var2. (The boolean value: false is less than the boolean value: true.)

true

false

false—The boolean value of $boolean-var1 is greater than the boolean value of $boolean-var2.

true

true

false—The boolean value of $boolean-var1 is the same as the boolean value of $boolean-var2. $boolean-var1 is not less than $boolean-var2.

false

false

false—The boolean value of $boolean-var1 is the same as the boolean value of $boolean-var2. $boolean-var1 is not less than $boolean-var2.

This operator is equivalent to the lt operator with boolean values.

Signatures

op:boolean-less-than(xs:boolean $boolean-var1, xs:boolean $boolean-var2) —> xs:boolean

Arguments

Data Type
Argument
Description

xs:boolean

$boolean-var1

Represents a boolean value.

xs:boolean

$boolean-var2

Represents a boolean value.

Returns

Returns the boolean value: true if $boolean-var1 is less than boolean value of $boolean-var2. For example: if $boolean-var1 is equal to false and $boolean-var2 is equal to true, the boolean value true is returned.

Returns the boolean value: false for all other cases.

Examples

boolean-less-than(false, true) Returns true

Invoking op:boolean-less-than(xf:false(),xf:true()) returns the boolean value: true, as shown in the following example query:

<boolean-less-than>{
	op:boolean-less-than(xf:false(),xf:true())
}</boolean-less-than> 

The preceding query generates the following result:

<boolean-less-than>true</boolean-less-than> 

boolean-less-than(true, false) Returns false

Invoking op:boolean-less-than(xf:true(),xf:false()) returns the boolean value: false, as shown in the following example query:

<boolean-less-than>{
	op:boolean-less-than(xf:true(),xf:false())
}</boolean-less-than> 

The preceding query generates the following result:

<boolean-less-than>false</boolean-less-than> 

Related Topics

W3C boolean-less-than operator description.

W3C boolean function description

xs:boolean