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.

defaultdefaultDefaultDefault (Operator)

Name

defaultdefaultDefaultDefault — Alternative branch in a switchswitchSwitchSwitchSwitch block.

Signature

default( : : : )

Herror default()

Herror T_default()

void Default()

static void HOperatorSet.Default()

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