ClassesClasses | | Operators

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

elseifelseifElseifElseif (Operator)

Name

elseifelseifElseifElseif — Conditional statement with alternative.

Signature

elseif( : : Condition : )

Herror elseif(const Hlong Condition)

Herror T_elseif(const Htuple Condition)

void Elseif(const HTuple& Condition)

static void HOperatorSet.Elseif(HTuple condition)

Description

elseifelseifElseifElseifElseif is a conditional statement that continues after an ififIfIfIf or another elseifelseifElseifElseifElseif block with an alternative block. The ConditionConditionConditionConditioncondition parameter must evaluate to a boolean or integer expression.

If ConditionConditionConditionConditioncondition evaluates to 'true'"true""true""true""true" (not 0), the following block body up to the next corresponding block statement elseifelseifElseifElseifElseif, elseelseElseElseElse, or endifendifEndifEndifEndif is executed. Reaching the end of the block the execution continues after the corresponding endifendifEndifEndifEndif statement.

If ConditionConditionConditionConditioncondition evaluates to 'false'"false""false""false""false" (0), the execution is continued at the next corresponding block statement elseifelseifElseifElseifElseif, elseelseElseElseElse, or endifendifEndifEndifEndif.

Parameters

ConditionConditionConditionConditioncondition (input_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Condition for the if statement.

Default value: 1

Result

If the condition is correct elseifelseifElseifElseifElseif (as operator) returns 2 (H_MSG_TRUE). Otherwise an exception is raised and an error code returned.

Alternatives

ififIfIfIf

See also

elseelseElseElseElse, forforForForFor, whilewhileWhileWhileWhile, untiluntilUntilUntilUntil

Module

Foundation


ClassesClasses | | Operators