1 operators, 2 order of precedence, Operators – Campbell Scientific RTMC Pro Real-Time Monitor and Control Professional Software User Manual
Page 28: Order of precedence
RTMC Pro
All of the functions available in RTMC are described below. For details on a
function, see RTMC’s online help.
Spaces must be used to delimit the predefined constants and
functions. Operators allow but do not require spaces.
NOTE
An expression can include data values from multiple dataloggers.
NOTE
An expression must include a data value from a data source (i.e.,
LoggerNet server, database, data file, HTTP datalogger, or
virtual data source).
NOTE
2.4.1 Operators
Operator
Description
( )
Prioritizes an expression
* Multiply
by
/ Divide
by
^
Raised to the power of
+ Add
- Subtract/Unary
negation
= Equal
<> Not
equal
> Greater
than
< Less
than
>=
Greater than or equal to
<=
Less than or equal to
2.4.2 Order of Precedence
Anything inside parentheses ( )
Exponentiation
^
Negation
(unary)
-
Multiplication *, division /
Modulo (remainder) MOD
Addition +, subtraction -
When consecutive operators have the same priority, the expression evaluates
from left to right. This means that an expression such as a-b-c is evaluated as
(a-b)-c.
22