Logic Operators

The following table contains full set of logic operators supported.

A number of examples are contained in the following section that uses some of these logic operators in conditions.

Table 1. Logic operators
Operator Description Syntax
! Not ! expr
- Unary minus (negation) - expr
== Equality expr == expr
= Equality expr = expr
!= Inequality expr != expr
< Less than expr < expr
<= Less than or equal to expr <= expr
> Greater than expr > expr
>= Greater than or equal to expr >= expr
?: Conditional Expression expr ? expr : expr
AND Logical AND expr AND expr
&& Logical AND expr && expr
OR Logical OR expr OR expr
|| Logical OR expr || expr

Sample expressions

Table 2. Logic operators examples
Expression Description
([Cell]![{Neutral.TCH.seizure_attempts}] > 2000 AND 
[Cell]![{Neutral.TCH.seizure_successes}] 
< 1700) ? [Cell]![{Neutral.TCH.total_dropped_calls}] :
nullInt()

Following are the combination of logic operators to create conditions:

Where seizure_attempts is greater than 2000 and seizure_successes is less than 1700.

Then, return total_dropped_call

else return NULL.

Remarks

Values of attributes in an Application Gateway object are sometimes NULL. That means no data was read from the database, ASCII file or other repository source. If you apply an operator to a NULL attribute, the NULL is returned.

You can use the function isNull to determine whether an attribute or expression has a value.