ClassesClassesClassesClasses | | | | 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).

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

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

elseifelseifElseifelseifElseifElseif (Operator)

Name

elseifelseifElseifelseifElseifElseif — Conditional statement with alternative.

Signature

elseif( : : Condition : )

Herror elseif(const Hlong Condition)

Herror T_elseif(const Htuple Condition)

Herror elseif(const HTuple& Condition)

void Elseif(const HTuple& Condition)

void HOperatorSetX.Elseif([in] VARIANT Condition)

static void HOperatorSet.Elseif(HTuple condition)

Description

elseifelseifElseifelseifElseifElseif is a conditional statement that continues after an ififIfifIfIf or another elseifelseifElseifelseifElseifElseif block with an alternative block. The ConditionConditionConditionConditionConditioncondition parameter must evaluate to a boolean or integer expression.

If ConditionConditionConditionConditionConditioncondition evaluates to 'true'"true""true""true""true""true" (not 0), the following block body up to the next corresponding block statement elseifelseifElseifelseifElseifElseif, elseelseElseelseElseElse, or endifendifEndifendifEndifEndif is executed. Reaching the end of the block the execution continues after the corresponding endifendifEndifendifEndifEndif statement.

If ConditionConditionConditionConditionConditioncondition evaluates to 'false'"false""false""false""false""false" (0), the execution is continued at the next corresponding block statement elseifelseifElseifelseifElseifElseif, elseelseElseelseElseElse, or endifendifEndifendifEndifEndif.

Parameters

ConditionConditionConditionConditionConditioncondition (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Condition for the if statement.

Default value: 1

Result

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

Alternatives

ififIfifIfIf

See also

elseelseElseelseElseElse, forforForforForFor, whilewhileWhilewhileWhileWhile, untiluntilUntiluntilUntilUntil

Module

Foundation


ClassesClassesClassesClasses | | | | Operators