BIS_fnc_conditionalSelect
Jump to navigation
Jump to search
Description
- Description:
- This returns a sub-array of elements that satisfy a specific condition in the order they have been passed.
In the condition, the currently tested element is assigned to the variable "_x".
The original array is not modified. - Execution:
- call
- Groups:
- Arrays
Syntax
- Syntax:
- [items, condition] call BIS_fnc_conditionalSelect
- Parameters:
- items: Array - array to check
- condition: Code - selection code
- Return Value:
- Array
Examples
- Example 1:
- Example 2:
Additional Information
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