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.
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
Expression | Description |
---|---|
|
Following are the combination of logic operators to create conditions: Where Then,
|
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.