The following operators are available for use in expressions in AvanWaves.
The following are arithmetic operators:
The following operators perform comparisons and return values of 0 or 1:
The following operators evaluate Boolean expressions and return values of 0 or 1:
&& Performs the AND operation. Returns 1 if both values are nonzero, and returns 0 otherwise.
|| Performs the OR operation. Returns 1 if either value is nonzero, and returns 0 otherwise.
! Performs the NOT operation. Returns 1 if its argument is 0, and returns 0 otherwise.
The following conditional operator is available:
<expr1> ? <expr2> : <expr3> <expr1>, <expr2>, and <expr3> are expressions. If the result of <expr1> is nonzero, then the result of <expr2> is returned, otherwise the result of <expr3> is returned.
AvanWaves User Guide - Release 2001.2