CBA_fnc_findNil

Description

A function that returns the index of the first empty (nil) entry in an array.

Parameters

The array to search in.

Example

_index = ["", player, "test", nil, _variable, nil] call CBA_fnc_findNil

Returns

Index of the first nil entry in the array.  If there is no nil entry, the function returns -1

Author

joko // Jonas

Close