%setlocalvar keyword (SDL script)
This keyword sets the value of a local variable, which is local to the generation template that declares the local variable.
* 
Before setting a local variable, you must declare it in the generation template using the %localstring or %localnumeric keyword. You can get the value of a local variable through the %getlocalvar keyword.
Syntax
For a string type:
%setlocalvar "<name of variable>" = "<text>"
For a numeric type:
%setlocalvar "<name of variable>" = <value>
This example sets the value of a local string variable named cAccess to 'public', and sets the value of a local numeric variable named bRtSSimulation to 1.
%setlocalvar "bRtSSimulation" = 1 // sets numeric local variable
%setlocalvar "cAccess" = "public" // sets string local variable
Was this helpful?