Operators
Arithmetic operators
Syntax
Meaning
a + b
Addition
a - b
Subtraction
a * b
Multiplication
a / b
Division
a % b
Modulo (remainder)
a ^ b
Exponent (power)
Comparison operators
Syntax
Meaning
a < b
Less than
a > b
Greater than
a <= b
Less or equal
a >= b
Greater or equal
a == b
Equal
a != b
Not equal
Logical operators
Syntax
Meaning
Example
a && b ,
a and b
Logical and
True if both are true
(a>b) and (c>d)#a=Temp;b=Max;c=Pressure;d=Min
`a
b/a or b`
Comparison and logical operators return a discrete value of either true or false, except when either input is null. In that case a value of null is returned.
If the return value is assigned to an analog Tag, the assigned values are either 1 (true), 0 (false) or null.
Last updated
Was this helpful?