$set

Creates a local variable with the given name and value.
Syntax
    $set{name}{value}
DocumentationCreates a local variable with the given name and value:

    Parameters:
      name, the name of the local variable to be created.
      value, the value of the local variable to be created.
    Note:
      if a local variable with the same name already exists, then its value will be changed by the $set call.
Examples
Example 1:
    $set{a}{300}
    a:$get{a}

    Result 1:
    sets the local variable "a" to the value "300", gets local variable "a":
    a: 300
Example 2:
    $set{a}{7}
    $set{b}{6}
    $set{a}{$dec{$get{a}}}
    $if {$equals{$get{a}}{$get{b}}}
    {a equals b}
    {a and b are not equal}

    Result 2:
    sets local variables "a" and "b", decreases local variable "a", returns true if "a"
    equals "b":
    a equals b
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters 2