---
name: "default"
type: command
status: ok
groups: ["Program Flow"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/default
revid: 369400
updated: 2024-09-03T18:43:21Z
---

# default

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

## Description

Defines a [Switch Type](../topics/Switch_Type.md) default case - does **not** need a colon to define its block. See [switch](../commands/switch.md) for more information.

## Syntax

```sqf
default a
```

**Parameters:**

- `a`: [Code](../topics/Code.md)

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

## Examples

### Example 1

```sqf
switch (_condition) do
{
    case 1: { hint "1" };
    case 2: { hint "2" };
    default { hint "default" }; // no colon after default
};
```

## See also

[Control Structures](../topics/Control_Structures.md) · [switch](../commands/switch.md) · [case](../commands/case.md)

<sub>Source: [BI Community Wiki — default](https://community.bistudio.com/wiki/default) (revision 369400).</sub>
