setVar
Last updated
Last updated
Creates a global variable with a value associated to it.
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
Description | Output Type |
---|---|
N/A
Coming Soon.
This will create a global variable called "version" containing the value "1.0.0" that can be accessed by other components or on other pages of your app.
The value of the global variable version
can be accessed by using the getVar
function.
Using the above flow will display the value 1.0.0
in the browser console.
See also getVar
Drag the setVar
function into the flow window.
Create a variable called version
with the value 1.0.0
var
The name of the variable to create.
String/Text
-
-
Yes
value
The value associated to the variable.
String/Text
-
-
Yes
Returns the value of the variable created.
String/Text