Skip to content

default🔗

Only available for HDevelop

Short description🔗

default — Alternative branch in a switch block.

Signature🔗

default( : : : )

Description🔗

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

Result🔗

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

Combinations with other operators🔗

Combinations

Alternatives

case, elseif, else

See also

switch, case, endswitch, if

Module🔗

Foundation