{"name":"BIS_fnc_swapVars","title":"BIS fnc swapVars","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_swapVars","revid":328403,"updated":"2022-07-13T16:00:49Z","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":"Swaps the values of two variables **passed as String**.\nNothing is returned as this function modifies the variables directly.","syntaxes":[{"syntax":"[variableName1, variableName2] call BIS_fnc_swapVars","params":[{"name":"variableName1","type":"String","type_expr":"String"},{"name":"variableName2","type":"String","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["private _a = 1;\n_b = 2;\n[\"_a\", \"_b\"] call BIS_fnc_swapVars;\n_a == 2; // true\n_b == 1; // true"]}]}