AI296 Version 9.8x User’s Guide
Alias and Call Routing Configuration: Alias Macros
8-40
Operators
Operators are used for calculation of mathematical expressions in alias macros.
AI296 evaluates expressions from left to right in order of precedence as shown in
Table 8-19
. To change the order of precedence, a programmer may enclose a portion
of an expression in parentheses ( ) to calculate that portion first.
AI296 evaluates both regular and boolean logic operators. Refer to Table 8-19
for a
list of all available operators in order of precedence.
4+3*2 Specifies an equation that equals 10.
(4+3)*2 Specifies an equation that equals 14.
Table 8-19 Operators in Order of Precedence
Operator Description
# Specifies a comment at the ends the alias macro expression.
*
/
%
Specifies a multiplication operation.
Specifies a division operation.
Specifies the remainder of a division operation.
+
-
Specifies an addition operation.
Specifies a subtraction operation.
Expressions that use the following operators return “0” for a false condition and “-1”
for true condition:
<<
<<=
=
>
>=
<<>
Specifies a less than evaluation.
Specifies a less than or equal to evaluation.
Specifies an equal to evaluation.
Specifies a greater than evaluation.
Specifies a greater than or equal to evaluation.
Specifies a not equal to evaluation.
& Specifies a boolean logical AND evaluation. This requires that two
conditions are true before continuing with the evaluation.
^ Specifies a boolean logical exclusive OR evaluation. This requires that
one condition or another (not both) is true before continuing with the
evaluation.
| Specifies a boolean logical OR evaluation. This requires that one
condition or both conditions are true before continuing with the
evaluation.