%OPR_IIF[condition,macro_input_field[,value]]%
Argument
| Required/
Optional
| Description
|
---|---|---|
condition
| Required
| The condition you want to evaluate. You can enter any valid
expression that evaluates to TRUE or FALSE. You can enter a macro input field
or an expression that includes at least one macro input field.
|
macro_input_field
| Required
| The values you want to return if the condition is TRUE. Any
data type except Binary. The return value is the data type specified by this
argument. You can enter a macro input field or an expression that includes at
least one macro input field.
|
value
| Optional
| The value you want to return if the condition is FALSE. Any
data type except Binary. In a horizontal or vertical macro, you can enter any
valid expression. In a hybrid macro, enter the input macro field that is used
to define the output macro field.
|
%tmin%
| %tmax%
| %type%
|
---|---|---|
0
| 30
| very cold
|
31
| 60
| cold
|
61
| 90
| warm
|
91
| 100
| hot
|
101
| 150
| very hot
|
%OPR_IIF [ (TEMP >= %tmin%) AND (TEMP <= %tmax%), '%type%', 'out of range' ]%
|
|
---|---|
79
| warm
|
21
| very cold
|
170
| out of range
|
99
| hot
|
90
| warm
|