---
name: "allVariables"
type: command
status: ok
groups: ["Namespaces", "Variables"]
arma3_since: "1.38"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/allVariables
revid: 338534
updated: 2023-03-15T15:11:36Z
---

# allVariables

*Command · Namespaces, Variables · Arma 3 v1.38*

## Description

Returns a list of all variables from the desired namespace.

## Syntax

```sqf
allVariables namespace
```

**Parameters:**

- `namespace`: [Namespace](../topics/Namespace.md), [Object](../topics/Object.md), [Group](../topics/Group.md), [Task](../topics/Task.md), [Location](../topics/Location.md), [Team Member](../topics/Team_Member.md), Arma 3 v2.02 [Control](../topics/Control.md), Arma 3 v2.02 [Display](../topics/Display.md)

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s - array of variable names. All names are in lower case (see [toLower](../commands/toLower.md))

## Examples

### Example 1

```sqf
_allVarsUINamespace = allVariables uiNamespace;
```

### Example 2

```sqf
_allVarsTrigger = allVariables trigger1;
```

## Multiplayer

> [!IMPORTANT]
> Using [profileNamespace](../commands/profileNamespace.md) and [uiNamespace](../commands/uiNamespace.md) with this command has been disabled in multiplayer in Arma 3 v1.40 - see [Changelog](https://forums.bohemia.net/forums/topic/140837-development-branch-changelog/?do=findComment&comment=2869646).

## See also

[allControls](../commands/allControls.md) · [allDisplays](../commands/allDisplays.md) · [allCurators](../commands/allCurators.md) · [allGroups](../commands/allGroups.md) · [allDead](../commands/allDead.md) · [allDeadMen](../commands/allDeadMen.md)

## Community notes

**longbow** — 2016-10-01

One still can use [allVariables](../commands/allVariables.md) in Multiplayer against [profileNamespace](../commands/profileNamespace.md) and [uiNamespace](../commands/uiNamespace.md) using config parser. In [Description.ext](../topics/Description.ext.md)

```sqf
_EXEC(someVar = allVariables profileNamespace)
```

in code

```sqf
_allProfileVars = parsingNamespace getVariable "someVar"
```

but this list will be valid only at the moment of config parsing.

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