IIf

The ‘IIf()’ function returns one of two values as a result of a condition. If is a shorthand form of the If function. IIF stands for ‘Immediate If’.

Can be used in: mailing text, actions

Syntax

IIf(Expression, YesValue, NoValue)

Result

Result of the Yes or No value, type: depends on the Yes and No values

Parameter

  • Expression
  • Yes value
  • No value

 

  • The condition to be tested, Type: Yes/No
  • Return value if the expression is true, type: all possible
  • Return value if the expression is false, type: must always be of the same type as YesValue

Related topics