Arma 3 Scripting

Command in Program Flow

a : b

Also available as Markdown and JSON, or read the original wiki page.

Description

See switch

Syntax

a : b

Parameters:

Returns: Nothing

Examples

Example 1

? (_var == _test) : hint "_var is equal to _test!";

Example 2

switch (_condition) do
{
    case 1: { hint "1" };
    case 2: { hint "2" };
    default { hint "default" }; // note: NO colon for the default case
};

See also

Control Structures · switch