BIS fnc setNestedElement: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (1 revision)
(No difference)

Revision as of 15:47, 25 July 2014


Hover & click on the images for description

Description

Description:
/*
	File: fn_setNestedElement.sqf

	Description:
	Function to set an item in a nested array using a path.
	
	Example:
	_array = [[1, 2], [3, 4]];
	_bool = [_array, [0, 0], 0] call BIS_fnc_setNestedElement; //Expected result: [[0, 2], [3, 4]]

	Parameter(s):
	_this select 0: Array
	_this select 1: path to the element (Array)
	_this select 2: new value (Any Value)
	
	Returns:
	Boolean success flag
*/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section