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`

Last updated

Was this helpful?