ArrayParser.containsCondition() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
condition |
{function} |
No |
argument? |
{any} |
Yes |
matchAll? |
{bool} |
Yes |
{bool}
Check if the array contains a value fulfilling the specified condition function by causing it to return true at least once or for all cases as it is executed once for each value of the array. The following arguments will be provided to the function and can be accessed in it by using their name or the argument array:
• argument[0]: _i {int}
• argument[1]: _value {any}
• argument[2]: _argument {any}