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

IFF Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

A conditional function that returns one of two values based on a boolean expression

Syntax​

IFF(condition, expression1, expression2)

Parameters​

ParameterDescriptionData TypeRequired
conditionBoolean condition to evaluateBooleanYes
true_valueThe true value argumentAnyYes
false_valueThe false value argumentAnyYes

Example​

SELECT
IFF(is_active, full_name, 'inactive')
FROM
rippling.employee.Employee
LIMIT
5;