Specifies the array to work with.
Specifies the condition that must be respected to continue taking elements.
1. |
In the following example, the values of the source array are only taken while they satisfy the condition. As soon as the function encounters a value that does not satisfy the condition, the function returns the array. In this case it returns [-10, -8, -6, -4, -2, 0]. TAKEWHILE([-10,
-8, -6, -4, -2, 0, 2, 4, 6, 8, 10], Item <= 0)
|
Specifies the array to work with.
Specifies the condition that must be respected to continue taking elements.
Specifies the maximum number of elements to include in the returned array.
1. |
In the following example, the values of the source array are only taken while they satisfy the condition. The function will stop checking elements after reaching the maximum count; so, in this case, it returns [-10, -8, -6]. TAKEWHILE([-10,
-8, -6, -4, -2, 0, 2, 4, 6, 8, 10], Item <= 0, 3)
|