BIS fnc setNestedElement: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 22: Line 22:
_bool = [_array, [0, 0], 0] [[call]] [[BIS_fnc_setNestedElement]]; {{codecomment|// _array is now [[0, 2], [3, 4]]}}</code>
_bool = [_array, [0, 0], 0] [[call]] [[BIS_fnc_setNestedElement]]; {{codecomment|// _array is now [[0, 2], [3, 4]]}}</code>


| [[BIS_fnc_findNestedElement]], [[BIS_fnc_findAllNestedElements]], [[BIS_fnc_removeNestedElement]], [[BIS_fnc_returnNestedElement]]
|seealso= [[BIS_fnc_findNestedElement]], [[BIS_fnc_findAllNestedElements]], [[BIS_fnc_removeNestedElement]], [[BIS_fnc_returnNestedElement]]
}}
}}



Revision as of 01:36, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Arrays

Syntax

Syntax:
Syntax needed
Parameters:
array: Array
path: Array of Numbers
value: Anything
Return Value:
Return value needed

Examples

Example 1:
_array = [[1, 2], [3, 4]]; _bool = [_array, [0, 0], 0] call BIS_fnc_setNestedElement; // _array is now [[0, 2], [3, 4]]

Additional Information

See also:
BIS_fnc_findNestedElementBIS_fnc_findAllNestedElementsBIS_fnc_removeNestedElementBIS_fnc_returnNestedElement

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