{"name":"allVariables","title":"allVariables","type":"command","url":"https://community.bistudio.com/wiki/allVariables","revid":338534,"updated":"2023-03-15T15:11:36Z","groups":["Namespaces","Variables"],"status":"ok","games":{"arma3":"1.38"},"since":"arma3 1.38","arma3_since":"1.38","description":"Returns a list of all variables from the desired namespace.","syntaxes":[{"syntax":"allVariables namespace","params":[{"name":"namespace","type":"Namespace, Object, Group, Task, Location, Team Member, Arma 3 v2.02 Control, Arma 3 v2.02 Display","type_expr":"Namespace | Object | Group | Task | Location | Team Member | Control | Display"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>","description":"array of variable names. All names are in lower case (see toLower)"},"form":"unary","right":{"text":"namespace"}}],"examples":[{"code":["_allVarsUINamespace = allVariables uiNamespace;"]},{"code":["_allVarsTrigger = allVariables trigger1;"]}],"multiplayer":"> [!IMPORTANT]\n> Using profileNamespace and uiNamespace 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","allDisplays","allCurators","allGroups","allDead","allDeadMen"],"notes":[{"user":"longbow","date":"2016-10-01T23:54:00Z","text":"One still can use allVariables in Multiplayer against profileNamespace and uiNamespace using config parser. In Description.ext\n\n```sqf\n_EXEC(someVar = allVariables profileNamespace)\n```\n\nin code\n\n```sqf\n_allProfileVars = parsingNamespace getVariable \"someVar\"\n```\n\nbut this list will be valid only at the moment of config parsing."}]}