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 (Operator)

Name

defaultdefaultDefaultDefaultdefault — Alternative branch in a switchswitchSwitchSwitchSwitchswitch block.

Signature

default( : : : )

Herror default()

Herror T_default()

void Default()

static void HOperatorSet.Default()

def default() -> None

Description

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.

Result

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

Alternatives

casecaseCaseCaseCasecase, elseifelseifElseifElseifElseifelseif, elseelseElseElseElseelse

See also

switchswitchSwitchSwitchSwitchswitch, casecaseCaseCaseCasecase, endswitchendswitchEndswitchEndswitchEndswitchendswitch, ififIfIfIfif

Module

Foundation