---
name: "a : b"
type: command
operator: ":"
status: ok
groups: ["Program Flow"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/a_:_b
revid: 329506
updated: 2022-07-29T13:38:09Z
---

# a : b

*Command · Program Flow · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

See [switch](../commands/switch.md)

## Syntax

```sqf
a : b
```

**Parameters:**

- `a`: [Switch Type](../topics/Switch_Type.md)
- `b`: [Code](../topics/Code.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

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

### Example 2

```sqf
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](../topics/Control_Structures.md) · [switch](../commands/switch.md)

<sub>Source: [BI Community Wiki — a : b](https://community.bistudio.com/wiki/a_:_b) (revision 329506).</sub>
