This functions allows to perform AND operations. The result of a logical operation AND is true only if all the operands
are true.
1 eval.and
<eval.and>
<value1 /> !
<value2 /> !
</eval.and>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evalue1 | |||||
Evalue2 |
Returns | |
---|---|
Type | Description |
Boolean | Returns true if the two comparables are true. |
Example
Copy
<xsql-script name='sample'> <body> <!-- Shows 0 (false) --> <println><eval.and><true /><false /></eval.and></println> <!-- Shows1 (true) --> <println><eval.and><true /><true /></eval.and></println> <!-- Shows 0 (false) --> <set name='a'>5</set> <println> <eval.and> <lt><a/>6</lt> <lt><a/>4</lt> </eval.and> </println> </body> </xsql-script>
Returns:
Copy
false true false