{"name":"BIS_fnc_removeNestedElement","operator":null,"title":"BIS fnc removeNestedElement","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_removeNestedElement","revid":327527,"updated":"2022-07-12T22:34:05Z","groups":["Arrays"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Function to remove an item in a nested array. Modifies the array by reference.","syntaxes":[{"syntax":"[array, itemToRemove] call BIS_fnc_removeNestedElement","since":null,"effect":null,"exec":null,"params":[{"name":"array","type":"Array","optional":false,"default":null,"description":null,"types":["Array"],"since":null,"text":"array: Array"},{"name":"itemToRemove","type":"Anything","optional":false,"default":null,"description":null,"types":["Anything"],"since":null,"text":"itemToRemove: Anything"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true on success, false on failure","text":"Boolean - true on success, false on failure"}}],"examples":[{"text":"```sqf\nprivate _array = [[1, 2], [3, 3, 4]];\nprivate _success = [_array, 3] call BIS_fnc_removeNestedElement; // _array is now [[1, 2], [4]]\n```","code":["private _array = [[1, 2], [3, 3, 4]];\nprivate _success = [_array, 3] call BIS_fnc_removeNestedElement; // _array is now [[1, 2], [4]]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_findNestedElement","BIS_fnc_findAllNestedElements","BIS_fnc_returnNestedElement","BIS_fnc_setNestedElement"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Arrays","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}