getVar

Description

Returns the value of a global variable.

Input / Parameter

NameDescriptionInput TypeDefaultOptionsRequired

var

The name of the variable.

String/Text

-

-

Yes

default

The default value of the variable.

String/Text

-

-

No

Output

DescriptionOutput Type

Returns the value of the global variable if there is a value, returns the default value otherwise.

String/Text

Callback

N/A

Video

Example

Steps

  1. Drag the getVar function into the event flow panel. (*Note: The console function is used here for ease of demostrating the output.)

  2. Specify the variable name that you would like to access.

Result

Variable existsVariable does not exist

Last updated