This Boolean operator logically ANDs the results of other Boolean operators. This operator has no attributes and can contain any number of child elements, which are the other Boolean operators. The <and> operator evaluates to true only if all of its child elements evaluate to true.
The following examples show how <and> is used and the results:
The following statement evaluates to true.
<and/> |
The following statement evaluates to true.
<and><istrue value="True"/></and> |
The following statement evaluates to false.
<and><equals value1="apple" value2="orange"/></and> |
The following statement evaluates to true.
<and> <matches value="apple" value2="ap*e"/> <istrue value="TRUE"/> <not><equals value1="apple" value2="orange"/></not> </and> |
The following statement evaluates to false.
<and> <matches value="apple" value2="ap*e"/> <istrue value="TRUE"/> <equals value1="apple" value2="orange"/> </and> |