---
name: "diag_enabled"
type: command
status: ok
groups: ["Diagnostic"]
arma3_since: "1.00"
branch: "diag"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/diag_enabled
revid: 369346
updated: 2024-09-03T18:43:02Z
---

# diag_enabled

*Command · Diagnostic · Arma 3 v1.00 · branch: diag*

## Description

Checks whether specific diagnostic mode is activated.

## Syntax

```sqf
diag_enabled mode
```

**Parameters:**

- `mode`: [String](../topics/String.md) - see Arma 3: Diagnostics Exe

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when enabled, [false](../commands/false.md) when disabled

## Examples

### Example 1

```sqf
"Animation" diag_enable true;
diag_enabled "Animation"; // returns true
```

## See also

Arma 3: Diagnostics Exe · [diag_toggle](../commands/diag_toggle.md) · [diag_enable](../commands/diag_enable.md)

<sub>Source: [BI Community Wiki — diag enabled](https://community.bistudio.com/wiki/diag_enabled) (revision 369346).</sub>
