Whenever the XML allows a Boolean decider (instead of a concrete Boolean), these are the valid options:
To set a Boolean comparison operation to compare dates or strings
Option | Description |
---|---|
"equal" | Evaluates to true only if the first and second values are equal |
"lessthan" | Evaluates to true only if the first is less than the second |
"greaterthan" | Evaluates to true only if the first is greater than the second |
"not" | Evaluates to true only if the first is NOT equal to the second |
<requirement comparison="equals"> <first> <component id="procs" /> </first> <second>1</second> </requirement>
The requirement evaluates to true if the value in the "procs" component is equal to 1.
To set a boolean decider to perform a logical operation
<requirement logical-operation="or"> <value> <component id="test_vlan" /> </value> <value> <component id="dev_vlan" /> </value> </requirement>
The requirement is evaluated to true if either the "test_vlan" or "dev_vlan" components are true.
Related topics
© 2012 Adaptive Computing