This Boolean operator is used to determine whether a particular value is true. <istrue> contains a single attribute, value, and has no child elements. <istrue> evaluates to true if and only if value equals true. The comparison is case-insensitive.
The <istrue> operator has one required attribute, value, which is the value to compare against true. This attribute can reference simple substitution variables.
The following examples show how <istrue> is used and the results:
The following statement evaluates to true.
<istrue value="True"/> |
The following statement evaluates to false.
<istrue value="yes"/> |
The following statement evaluates to true if var is true.
<istrue value=":[var]"/> |