For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

ARRAY_CONTAINS() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Determines whether the specified value is found in the specified array

Syntax​

ARRAY_CONTAINS(array, value_expression)

Parameters​

ParameterDescriptionData TypeRequired
arrayArray inputArrayYes
elementThe element argumentAnyYes

Notes​

  • Returns TRUE if the specified value is found in the specified array
  • Comparisons are type-sensitive: '2' is not equal to 2
  • If the array is NULL, the result is NULL
  • If the value_expression is NULL, the result depends on array contents (can be NULL or FALSE)

Example​

SELECT
ARRAY_CONTAINS(tags, 'eng')
FROM
rippling.employee.Employee
LIMIT
5;