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.

defaultdefaultDefaultDefaultdefault (算子名称)

名称

defaultdefaultDefaultDefaultdefault — Alternative branch in a switchswitchSwitchSwitchSwitchswitch block.

参数签名

default( : : : )

Herror default()

Herror T_default()

void Default()

static void HOperatorSet.Default()

def default() -> None

描述

defaultdefaultDefaultDefaultDefaultdefault opens an alternative branch in a switchswitchSwitchSwitchSwitchswitch block. This branch is accessed if the calculated control expression of the switchswitchSwitchSwitchSwitchswitch statement does not match any of the integer constants of the previous casecaseCaseCaseCasecase statements.

结果

defaultdefaultDefaultDefaultDefaultdefault (as an operator) always returns 2 ( H_MSG_TRUE) .

可替代算子

casecaseCaseCaseCasecase, elseifelseifElseifElseifElseifelseif, elseelseElseElseElseelse

参考其它

switchswitchSwitchSwitchSwitchswitch, casecaseCaseCaseCasecase, endswitchendswitchEndswitchEndswitchEndswitchendswitch, ififIfIfIfif

模块

Foundation