Condition attribute expressions
Use conditions to inform the one-line engine of the logical requirements necessary for a component to be considered active. Conditions may only contain tags, logical operators, relational operators, and numeric values. The following operators represent valid syntax that can be used for condition expressions:
Relational Operators
| Operators | Definition |
|---|---|
| > | Greater than |
| < | Less than |
| >= | Greater than equal |
| <= | Less than equal |
| == | Equals |
| != | Not equal |
Logical Operators
| Operators | Definition |
|---|---|
| && | Logical AND |
| || | Logical OR |
If a condition uses a variable tag, it must be a fully qualified variable tag that is configured in the system.
Example:
Cluster1.TagName > 1
or
Cluster1.EquipmentName.Item > 1
In expressions containing more than one logical operation statement, each statement must be enclosed in parenthesis.
Example:
(Cluster1.EquipmentName.IteamA > 1) && (Cluster1.EquipmentName.ItemB == 0)