Specifications

Section 8. Processing and Math Instructions
8-16
IIF (Expression, TrueValue, FalseValue)
Evaluates a variable or expression and returns one of two results based on the
outcome of that evaluation.
Syntax
Result = IIF(Expression, TrueValue, FalseValue)
Parameter
& Data Type
Enter
Expression
The Variable or expression to test.
Expression or Value Result
Variable
0
True: return TrueValue
0
False: return FalseValue
TrueValue
Constant
Variable or
Expression
The Value (or expression determining the value) to return if the test condition is true
FalseValue
Constant
Variable or
Expression
The Value (or expression determining the value) to return if the test condition is
False
IMP
Performs a logical implication on two expressions.
Syntax
result = expression1 IMP expression2
Remarks
The following table illustrates how Result is determined:
If expression1 is And expression2 is The result is
True True True
True False False
False True True
False False True
False Null True
The IMP operator performs a bitwise comparison of identically positioned bits
in two numeric expressions and sets the corresponding bit in result according
to the following table:
If bit in expression1 is And bit in expression2 is The result is
0 0 1
0 1 1
1 0 0
1 1 1