BIS fnc findNestedElement: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *codecomment *\| *\/\/ *([^ ]+) *\}\} " to "{{cc|$1}}") |
||
Line 19: | Line 19: | ||
|x1= <code>_array = [[1, 2], [3, 4]]; | |x1= <code>_array = [[1, 2], [3, 4]]; | ||
_path = [_array, 3] [[call]] [[BIS_fnc_findNestedElement]]; {{ | _path = [_array, 3] [[call]] [[BIS_fnc_findNestedElement]]; {{cc| expected result: [1, 0]}}{{codecomment|// ((_array [[select]] '''1''') [[select]] '''0''') {{=}}{{=}} 3}}</code> | ||
{{codecomment|// ((_array [[select]] '''1''') [[select]] '''0''') {{=}}{{=}} 3}}</code> | |||
| [[BIS_fnc_findAllNestedElements]], [[BIS_fnc_removeNestedElement]], [[BIS_fnc_returnNestedElement]], [[BIS_fnc_setNestedElement]] | | [[BIS_fnc_findAllNestedElements]], [[BIS_fnc_removeNestedElement]], [[BIS_fnc_returnNestedElement]], [[BIS_fnc_setNestedElement]] |
Revision as of 16:30, 29 January 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Arrays
Syntax
- Syntax:
- Syntax needed
- Parameters:
- array: Array - array to explore
- query: Anything - wanted item
- Return Value:
- Return value needed
Examples
- Example 1:
_array = [[1, 2], [3, 4]]; _path = [_array, 3] call BIS_fnc_findNestedElement; // expected result: [1, 0]// ((_array select 1) select 0) == 3
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