IModelling.Iif

Syntax

Iif(Condition: Variant; TruePart: Variant; FalsePart: Variant): Variant;

Parameters

Condition. Condition to be calculated.

TruePart. It is returned if the Condition value is True.

FalsePart. It is returned if the Condition value is set to False.

Description

The Iif method provides conditional execution of operators.

Comments

The Iif method is equivalent to the three-place operator ?:.

Difference of the Iif method from the three-place ? operator:

Example

The method use is given in the example for IModelling.IsSeriesEmpty.

See also:

IModelling