This function allows to do OR operations. The result of a logical OR operation is true if at least one of the operands is true.
 

1 eval.or

<eval.or>
    <value1 /> !
    <value2 /> !
</eval.or>
Example
Copy
<xsql-script name='sample'>
    <body>
        <!-- Shows 1 (true) -->
        <println><eval.or><true /><false /></eval.or></println>

        <!-- Shows 1 (true) -->
        <println><eval.or><true /><true /></eval.or></println>

        <!-- Shows 0 (false) -->
        <set name='a'>5</set>
        <println>
            <eval.or>
                <lt><a/>1</lt>
                <lt><a/>4</lt>
            </eval.or>
        </println>

        <!-- Shows 1 (true). The clause 'or' is situated between the comparables. -->
        <set name='a'>3</set>
        <println>
            <eval.or>
                <lt><a/>1</lt>
                <lt><a/>4</lt>
            </eval.or>
        </println>

        <!-- Shows 1 (true). The comparables are passed as arguments. -->
        <set name='a'>3</set>
        <println>
            <eval.or>
                    <lt><a/>1</lt>
                    <lt><a/>4</lt>
            </eval.or>
        </println>

    </body>
</xsql-script>

Returns:

Copy
true
true
false
true
true