Visara Master Console Center Scripting Guide User Manual
Page 183

Chapter 5 Script Commands
Scripting Guide
183
SET
Syntax:
SET Variable := Expression
Description:
Make the contents of a variable equal to the specified expression.
Action:
The variable is made equal to the value of the evaluated expression.
Parameters:
Variable. Numeric or string variable. The variable to receive the
value. If the expression evaluates to a numeric value, a numeric
variable must be specified; likewise for a string.
Expression. Numeric or string expression. The evaluated value to
place in the variable.
Returns:
N/A.
Notes:
SET is an optional keyword. The following statements have the same
function:
SET %Var := 22
%Var := 22
Example:
SET %Num := 200
SET $Str := “ABCDEFG”
%Num := VAL( $Str)
// 0
$Str := RIGHTSTR( $Str, 1)
// “G”
SET $Array[ 4] := “IEF”
See Also: