Variable Exists
Variable Exists
Checks whether a variable is defined and not null.
Variable
The name of the variable to check.
Use the exact variable name, such as MyVariable, as it appears in the list of available variables.
- Do not wrap the name in
{}or prefix it withVariables.— just use the plain name. - Dot notation is supported for object properties. For example,
movie.Titlewill check if theTitleproperty of themovieobject exists and is notnull.
This element checks only for existence and a non-null value. It does not check for empty strings, zero, or other falsy values.
Outputs
- Variable exists – The variable is defined and its value is not
null. - Variable does not exist – The variable is either undefined or explicitly
null.
Example
If you've previously parsed a media file and created a movie object, you might check movie.Title to determine if the metadata was successfully extracted before continuing the flow.
movie.Title
If the variable movie.Title exists and is not null, the flow will follow the Variable exists output.