Xgenia.Variables
Variables are the simplest form of global data model in Xgenia. You can learn more about variables in the guide. You can access all variables in your application trough the Xgenia.Variables
object. Changing a variable will trigger all connections to be updated for all Variable nodes in your project with the corresponding variable name.
// This will change the variable named MyVariable
// and trigger all variable nodes in your project
Xgenia.Variables.MyVariable = "Hello";
// Use this if you have spaces in your variable name
Xgenia.Variables["My Variable"] = 10;
Xgenia.Variables.userName = "Mickeeeey";
// Reading variables
console.log(Xgenia.Variables.userName);