Feature Rich
Rapid Application Development
Helping you or your customers
Manage their Business

All Commands All Program Flow
Commands

IIF

This will return either the true_val or the false_val depending on the outcome of the argument expression.

Try not to use this if the true or false values contain any UDB commands as they will both be evaluated regardless of the outcome of the argument and this will waste resources.

Number Name Default Type Description
1 argument FALSE String The argument to evaluate
2 true_val String The value to return if the argument result is TRUE
3 false_val String The value to return if the argument result is FALSE
Basic Example

TRUE

FALSE

Embedded Inline IF Statement Example
You can also include an inline IF statement in an inline IF statement

POSITIVE NUMBER

to add a Comment.