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.

elseelseElseElseelse (算子名称)

名称

elseelseElseElseelse — Alternative of conditional statement.

参数签名

else( : : : )

Herror else()

Herror T_else()

void Else()

static void HOperatorSet.Else()

def else() -> None

描述

elseelseElseElseElseelse continues after an ififIfIfIfif or elseifelseifElseifElseifElseifelseif block with an alternative block. If the conditions of all corresponding ififIfIfIfif or elseifelseifElseifElseifElseifelseif blocks evaluated to 'false'"false""false""false""false""false" (0), i.e., none of the corresponding ififIfIfIfif or elseifelseifElseifElseifElseifelseif blocks has been executed, the following elseelseElseElseElseelse block is executed.

结果

elseelseElseElseElseelse (as operator) always returns 2 ( H_MSG_TRUE) .

可替代算子

ififIfIfIfif, elseifelseifElseifElseifElseifelseif

参考其它

untiluntilUntilUntilUntiluntil, forforForForForfor, whilewhileWhileWhileWhilewhile

模块

Foundation