This function allows to compare two values, if the first is lower than or equal to the second, it will return true. Otherwise, it will return false.
 

1 eval.le

<eval.le>
    <value_1 /> !
    <value_2 /> !
</eval.le>
Example
Copy
<xsql-script name='sample'>
    <body>
        <set name='value_1'>10</set>
        <set name='value_2'>20</set>
        <!-- Shows 0 (true) -->
        <println><eval.le><value_1 /><value_2 /></eval.le></println>

        <!-- Shows 1 (false) -->
        <println><eval.le><value_2 /><value_1 /></eval.le></println>

        <set name='value_1'>10</set>
        <set name='value_2'>10</set>

        <!-- Shows 0 (true) -->
        <println><eval.le><value_1 /><value_2 /></eval.le></println>

    </body>
</xsql-script>

Returns:

Copy
true
false
true