Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

elseifelseifElseifElseifelseif (算子名称)

名称

elseifelseifElseifElseifelseif — Conditional statement with alternative.

参数签名

elseif( : : Condition : )

Herror elseif(const Hlong Condition)

Herror T_elseif(const Htuple Condition)

void Elseif(const HTuple& Condition)

static void HOperatorSet.Elseif(HTuple condition)

def elseif(condition: int) -> None

描述

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.

参数表

ConditionConditionConditionConditionconditioncondition (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Condition for the if statement.

Default: 1

结果

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

可替代算子

ififIfIfIfif

参考其它

elseelseElseElseElseelse, forforForForForfor, whilewhileWhileWhileWhilewhile, untiluntilUntilUntilUntiluntil

模块

Foundation