{"name":"BIS_fnc_variableSpaceAdd","title":"BIS fnc variableSpaceAdd","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_variableSpaceAdd","revid":337310,"updated":"2023-01-15T12:01:18Z","groups":["Variables"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Add element to variable from someone's variable space.","syntaxes":[{"syntax":"[object, varName, element, global, inArray] call BIS_fnc_variableSpaceAdd","params":[{"name":"object","type":"Object","description":"owner of variable space","type_expr":"Object"},{"name":"varName","type":"String","description":"name of variable","type_expr":"String"},{"name":"element","type":"Anything","description":"element which will be added (must be of same type as variable)","type_expr":"Anything"},{"name":"global","type":"Boolean","optional":true,"default":"false","description":"true to save modified variable globally","type_expr":"Boolean","text":"global: Boolean - (Optional, default false) true to save modified variable globally"},{"name":"inArray","type":"Boolean","optional":true,"default":"false","description":"true to check if element is already in variable (only for Arrays)","type_expr":"Boolean","text":"inArray: Boolean - (Optional, default false) true to check if element is already in variable (only for Arrays)"}],"returns":{"type":"Anything","type_expr":"Anything","description":"updated variable"}}],"examples":[{"code":["[player, \"someVar\", 1337, true, true] call BIS_fnc_variableSpaceAdd;"]}],"see_also":["BIS_fnc_variableSpaceRemove"]}