bmel:countIf¶
Category: Array & Statistics · Returns: bmel:integer
bmel:countIf(array: bmel:array, cond: bmel:expression)
Description¶
Returns the count of elements in an array that satisfy the given boolean condition.
Arguments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
array | bmel:array | ✅ | The array to evaluate. |
cond | bmel:expression | ✅ | Boolean predicate expression evaluated against each element. |
Example¶
bmel:countIf({batch:Response Payload}.$.results, bmel:i > 0)