MA Lighting grandMA2 User Manual - page 1171
© 2017 MA Lighting Technology GmbH | Dachdeckerstr. 16 | D-97297 Waldbüttelbrunn | Germany
Phone +49 5251 688865-30 | tech.support (at) malighting.com | www.malighting.com
Version 3.3
1
This is the currently logged in user.
Even though these are listed as "Global" some are actually user variables. Two different users in the same session
will not get the same result in some of these - for instance the $USER will be different and they can also be on
different pages and have different executors selected.
Additions with Variables
There are two commands that allows you to do a little addition with variables:
and
.
You can do math with numbers and you can append text to text or numbers (this will convert a number to text).
This is the possible syntax:
AddVar $variable = number
AddVar $variable = "text"
AddVar $variable = $variable
The only difference between AddVar and AddUserVar is that the first is used with the global variables and the second
is for the current users own variables.
The variable needs to exist before you use AddVar/AddUserVar on it.
Examples
Adding numbers:
SetVar $my_number = 1
AddVar $my_number = 1
Result is that the variable $my_number is the number
2
.
Adding text:
SetVar $my_executor = "Executor 10"
AddVar $my_executor = " + 11"
Result is the text in the variable $my_executor is
Executor 10 + 11
.
Adding variables:
SetVar $date_time = $DATE
AddVar $date_time = "_"
1171