| 25 March 2002 |
IIF() |
| Author | ScriptLogic Corporation |
| Action | Also known as an Immediate IF, this function evaluates a logical expression and then returns one of two results. |
| Syntax | IIF (ExpL, ExpT, ExpF) |
| Parameters | ExpL (Required / String) The expression to evaluate. ExpT (Required / String) The expression to return if ExpL is evaluated as a true value. ExpF (Required / String) The expression to return if ExpL is evaluated as a false value. |
| Remarks | This function can be used in place of IF...ELSE...ENDIF for simple conditional expressions. If this function is ever built into KiXtart as a native function, it will certainly offer considerably better performance than its IF...ELSE...ENDIF counterpart. |
| Returns | Returns either ExpT or ExpF, based on the logical evaluation of ExpL. |
| Dependencies | None. |
| Examples | |
| Source | |