{"name":"BIS_fnc_setNestedElement","title":"BIS fnc setNestedElement","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_setNestedElement","revid":324401,"updated":"2022-07-01T12:00:57Z","groups":["Arrays"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Function to set an item in a nested array using a path. Modifies the array by reference.","syntaxes":[{"syntax":"[array, path, value] call BIS_fnc_setNestedElement","params":[{"name":"array","type":"Array","type_expr":"Array"},{"name":"path","type":"Array of Numbers","type_expr":"Array<Number>"},{"name":"value","type":"Anything","type_expr":"Anything"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true on success, false on failure"}}],"examples":[{"code":["private _array = [[1, 2], [3, 4]];\n_bool = [_array, [0, 0], 0] call BIS_fnc_setNestedElement; // _array is now [[0, 2], [3, 4]]"]}],"see_also":["BIS_fnc_findNestedElement","BIS_fnc_findAllNestedElements","BIS_fnc_removeNestedElement","BIS_fnc_returnNestedElement"]}