condition count arrayName
Operand types
condition:
CodearrayName:
Array
Type of returned value
Description
Counts elements in array for which given condition is true.
It is calculated as follows:
Set count to 0.
For each element of array assign element as _x and evaluate condition expression.
If true increase count.
Used In
OFP/ArmA
Example
{_x > 2} count [0, 1, 1, 2, 3, 3] ..........Result is 2
("_x == {M16}" count magazines soldier1)