Accessing internal variables in Dialogic 2 #1556
-
I saw that in Dialogic 1 it was possible to access internal variables with the Dialogic Class and functions get_variable(name, default) and set_variable(name, default). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
Thanks! This definitely helps! |
Beta Was this translation helpful? Give feedback.
In dialogic 2 you can access variables via the Variable subsystem, shortened to VAR:
If your dialogic-setup looks like this:
You could write the following in code:
This is also explained in more detail in the variables editor.
Alternatively you can now access external variables of Autoloads in conditions. So if you had for example a "Map" autoload with variables that indicate which places have been visited you could make the following conditions:
That would imply this kind of variable in your "Map" autoloads script: