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

NULLIF() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Returns NULL if expression1 is equal to expression2, otherwise returns expression1

Syntax​

NULLIF(expression1, expression2)

Parameters​

ParameterDescriptionRequired
expression1Any general expression of any data typeYes
expression2Any general expression that evaluates to the same data type as expression2Yes

Example​

SELECT 
NULLIF(full_name, CONCAT(e.preferred_first_name, ' ' , e.preferred_last_name) as full_name)
FROM
rippling.employee.Employee;