---
name: "ctrlType"
type: command
status: ok
groups: ["GUI Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlType
revid: 318899
updated: 2022-05-13T09:22:00Z
---

# ctrlType

*Command · GUI Control · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

Returns number representing the type of control, which is also defined by *type* property in config. For more information see Arma: GUI Configuration

## Syntax

```sqf
ctrlType control
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_type = ctrlType _rscEdit; // 2
```

## See also

[ctrlCreate](../commands/ctrlCreate.md) · Arma: GUI Configuration

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