Alertra Script Language 1.9

set

Sets the value of a local variable to the given expression. The local variable does not have to be created first; the first time you give a variable a value the variable will be created and will exist for the entire execution of the script.

usage: set [target] = [source]

parameters:

req name type description
Y target variable The variable name to set contain the value.
Y source expression The value to set the variable to.

examples

set HOST = "www.alertra.com"

Sets the "HOST" variable to the value "www.alertra.com"

set PAGE = "/orderform.asp?id=" + $ID + "&load=y"

Assuming "ID" is a variable set to "10", this example sets the "PAGE" variable to the value "/orderform.asp?id=10&load=y".


Alertra Script Language: Language Reference