Operator Reference

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)

defaultdefaultDefaultDefaultdefault — Alternative branch in a switchswitchSwitchSwitchswitch block.

Signature

default( : : : )

Herror default()

Herror T_default()

void Default()

static void HOperatorSet.Default()

def default() -> None

Description

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

Result

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

Alternatives

casecaseCaseCasecase, elseifelseifElseifElseifelseif, elseelseElseElseelse

See also

switchswitchSwitchSwitchswitch, casecaseCaseCasecase, endswitchendswitchEndswitchEndswitchendswitch, ififIfIfif

Module

Foundation