Exists | EXISTS

Syntax

EXISTS( [input] )

Parameters

input
Any data may be used as the input.

Return Value

FALSE if the INPUT is UNDEFINED or not set, otherwise TRUE.

Description

Determine if a value is defined.

Examples

EXISTS(undefined) # returns FALSE
EXISTS(null) # returns TRUE
# ${somevar} is not set
EXISTS(${somevar}) # returns FALSE
EXISTS(0) # returns TRUE
EXISTS("") # returns TRUE