Skip to main content
  • Returns TRUE if all elements in the array are TRUE or if the array is empty.
  • Returns FALSE if any element in the array is FALSE.
  • Returns NULL if any element is NULL and no element is FALSE.
When an optional lambda function is provided, ARRAY_ALL_MATCH applies the function to each element and then evaluates the resulting array. Alias: ALL_MATCH

Syntax

Parameters

Return Type

The ARRAY_ALL_MATCH function returns a result of type BOOLEAN.

Examples

Check if all player nicknames end with '2024':

Rows: 1Execution time: 5.97ms

Check if all elements in the first array can be divided by the elements in the second array:

Rows: 1Execution time: 5.71ms

Check if all elements in an input array are true:

Rows: 1Execution time: 6.37ms