This function allows to compare two values, if the first is lower than the second, it will return true. Otherwise, it will return false.
1 eval.lt
<eval.lt>
<value_1 /> !
<value_2 /> !
</eval.lt>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evalue_1 | |||||
Evalue_2 |
Returns | |
---|---|
Type | Description |
Boolean | Returns true if the first value is lower than the second. |
Example
Copy
<xsql-script name='sample'> <body> <set name='value_1'>10</set> <set name='value_2'>20</set> <!-- Shows 0 (true) --> <println><eval.lt><value_1 /><value_2 /></eval.lt></println> <!-- Shows 1 (false) --> <println><eval.lt><value_2 /><value_1 /></eval.lt></println> </body> </xsql-script>
Returns:
Copy
true false