This Boolean operator logically ORs 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 <or> operator evaluates to true only if it contains at least one child element that evaluates to true.
The following examples show how <or> is used and the results:
The following statement evaluates to false.
<or/> |
The following statement evaluates to true.
<or><istrue value="True"/></or> |
The following statement evaluates to false.
<or><equals value1="apple" value2="orange"/></or> |
The following statement evaluates to false.
<or> <matches value="apple" value2="p*e"/> <istrue value="FALSE"/> <equals value1="apple" value2="orange"/> </or> |
The following statement evaluates to true.
<or> <matches value="apple" value2="p*e"/> <not><istrue value="FALSE"/></not> <equals value1="apple" value2="orange"/> </or> |