Navigation:  Program Reference > Scripting and Variables >

Local Variables Declaration

Previous pageReturn to chapter overviewNext page

Local variables are temporary variables that are only valid in one context. VisualSetup allows you declare local variables that are valid in the current event. Actually you do not need to declare a local variable in an event, you just need to reference a variable that was not declared previously.

 

Every variable parameter of any action can declare a local variable. If you enter in a variable parameter the name of a variable that is declared as global variable, setup will get and set the values to the global variable. Otherwise, if you enter in a variable parameter the name of a variable that is not declared as a global variable, setup will declare this variable as a local variable and will will get and set the values to this variable.

The declared local variables cannot be accessed outside the event that declared it.