IModelling.Iif

Fore Syntax

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

Fore.NET Syntax

Iif(Condition: object;
    TruePart: object;
    FalsePart: object;
    Context: Prognoz.Platform.Interop.Fore.ForeRuntimeContext): object;

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 False.

Context. Context. The parameter is used only in Fore.NET.

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:

Fore and Fore.NET Examples

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

See also:

IModelling