Condition¶
Condition element contains information of a condition that must be met when a certain input item of calculation conditions become active.
Example¶
1<Condition conditionType="isEqual" target="type" value="1" />
1<Condition conditionType="and">
2 <Condition conditionType="isEqual" target="type" value="1" />
3 <Condition conditionType="isEqual" target="inflow" value="0" />
4</Condition>
Refer to ??? for other examples.
Attributes¶
Name |
Value |
Required |
Description |
---|---|---|---|
conditionType |
Refer to the table below |
Yes |
Type of condition |
target |
String |
Depends |
Name of the calculation condition to be compared with. Needs to be sconditionType Needs to be specified only if the conditionType value is none of \”and\”, \”or\”, \”not\”. |
value |
String |
Depends |
Value to be compared with. Needs to be sconditionType Needs to be specified only if the conditionType value is none of \”and\”, \”or\”, \”not\”. |
Value |
Meaning |
---|---|
isEqual |
is equal to |
isGreaterEqual |
is greater than or equal to |
isGreaterThan |
is greater than |
isLessEqual |
is less than or equal to |
isLessThan |
is less than |
and |
and |
or |
or |
not |
not |
Child elements¶
Name |
Required |
Description |
---|---|---|
Condition |
Depends |
The condition to which the AND, OR or NOT operator is applied. Need to be specified only if the conditionType value is one of the following: |