Syntax – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 308

Section 8. Processing and Math Instructions
Parameter
& Data Type
Enter
IIF PARAMETERS
Expression
The Variable or expression to test.
Expression or
Value Result
Variable
≠0
True: return TrueValue
0
False: return FalseValue
TrueValue
Constant, Var
or Expression
The Value (or expression determining the value) to return if the test condition is true
FalseValue
Constant, Var
or Expression
The Value (or expression determining the value) to return if the test condition is False
IMP
The IMP function is used to perform 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
True Null
Null
False True
True
False
False
True
False Null
True
Null True
True
Null False Null
Null Null
Null
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:
8-22