Skip to main content

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 with Variables. — just use the plain name.
  • Dot notation is supported for object properties. For example, movie.Title will check if the Title property of the movie object exists and is not null.

This element checks only for existence and a non-null value. It does not check for empty strings, zero, or other falsy values.

Outputs

  1. Variable exists – The variable is defined and its value is not null.
  2. 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.