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