Variables

Variables are used in the project to control the various activities of elements and scenes through connections. But these variables are local and cannot be used for different projects of the same organization.

Adding Variables in a project

  • Choose the variables you want to add.
  • Add the variable by clicking on Add Variable Button in the variables tab.

Using Variables in a Project

  • Add a TextBox by clicking on the + icon.
  • Put the variable you want to use in the text in double curly brackets: {{VAR}}.

variables

  • Add Connection: Change the value of VAR to (let say "Gmetri") after clicking on any element.

Connection

Global Variables

Global Variables remain same for the entire organization's different projects.

Project settings globalvariables

Defining Global Variables

  • Click on Define Global Variables in the Variables tab.

define global variables

  • Add the global variables by clicking on Add Variable button.

Adding Global variables in the Project###

  • Choose the variables you want to add.
  • Click on Add Global Variables button in the Variables Tab.

Using Global Variables in a project

  • Add Global Variables to your project by referring to Adding Global Variables.
  • Add a TextBox by clicking on the + icon.
  • Put the Global Variable you want to use in the text in double curly brackets: {{GLOBAL_VAR}}.

gvars

  • Add a Connection: Change the value of {{GLOBAL_VAR}} to (let say "Global variables") after clicking on any element.

gvars connection

  • Deploy the project using authentication as non-public.

To check persistance of Global Variables

After performing the above steps, do the steps as follows:

  • Create a new project and add the Global Variable (GLOBAL_VAR) to that Project.
  • Add a TextBox by clicking on the + icon.
  • Put the Global Variable you want to use in the text in double curly brackets: {{GLOBAL_VAR}}.

After deploying the project, it will be noticed that the GLOBAL_VAR contains the new value ("Global Variables") and not the value with which the GLOBAL_VAR was initialized.