The following structure can be used to create variables in the script editor:
SET | LET variableName = variable value ;
The following lines are examples of a variable definition using SET:
SET vMyString = 'This is a string';
SET vAnotherString = today();
When using SET, any value to the right of the equals sign will be treated as a string.
The variables vMyString and vAnotherString contain strings even if the second line has a form of function inside.
If you want a variable to hold the result of a function after it is evaluated, use LET:
LET vToday = today();
In this example, vToday will hold today's value returned by the function today() instead of the string 'today()'.