---
name: "ctrlEnabled"
type: command
status: ok
groups: ["GUI Control"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlEnabled
revid: 338573
updated: 2023-03-20T14:59:19Z
---

# ctrlEnabled

*Command · GUI Control · Arma 3 v0.50 · introduced in Operation Flashpoint v1.75*

Locality: arguments **local**

## Description

Returns if a control on the currently active user dialog is enabled. Disabled controls cannot be focused. Read Arma: GUI Configuration for more information about user dialogs and controls.

## Syntax

### Syntax 1

```sqf
ctrlEnabled idc
```

**Parameters:**

- `idc`: [Number](../topics/Number.md) - control's IDC

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if the control is enabled, [false](../commands/false.md) if not

### Syntax 2

```sqf
ctrlEnabled controlName
```

**Parameters:**

- `controlName`: [Control](../topics/Control.md)

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if the control is enabled, [false](../commands/false.md) if not

## Examples

### Example 1

```sqf
if !(ctrlEnabled 100) then
{
    ctrlEnable [100, true];
};
```

### Example 2

```sqf
_enabled = ctrlEnabled _control;
```

## See also

[ctrlEnable](../commands/ctrlEnable.md)

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