Previous Topic

Next Topic

IIf - MaxBasic Function

IIf(Expr1: Variant, Expr2: Variant, Expr3: Variant): Boolean

Conditional function. All three expression parameters are evaluated. If Expr1 is True, Expr2 is returned else Expr3 is returned.

IIf function syntax has these named arguments:

Parameter

Description

Expr 1

Required. String expression to be evaluated as True or False.

Expr 2

Required. Expression to be returned if Expr1 is True.

Expr 3

Required. Expression to be returned if Expr1 is False.

See Also

Boolean Functions

Book Contents

Book Index