BLANK_VALUE

Description

Returns a substitute value if the provided value is blank or empty; otherwise, returns the original value.

Syntax

BLANK_VALUE(value, substitute_value) -> Object

Parameters

ParameterData TypeRequiredDescription
valueObjectYesThe value to evaluate.
substitute_valueObjectYesThe substitute value to return if the provided value is blank.

Examples

BLANK_VALUE("", "N/A")
-- Returns "N/A".
BLANK_VALUE(Rating, "No Data")
-- Returns "No Data" if Rating is NULL or blank; otherwise, returns Rating.