Normal arrays, Associative arrays, Normal arrays associative arrays – Visara Master Console Center Scripting Guide User Manual
Page 39
Advertising

Chapter 3 Script Syntax
Scripting Guide
39
Normal Arrays
Normal arrays are indexed by any expression that evaluates to a positive
integer value.
The lowest normal array index value is 1.
Examples:
$Arr[ 4]
%Arr[ %ArrIndex]
$Arr[ (%Var1 + %Var2)]
Associative Arrays
Associative arrays are indexed by any expression that evaluates to a
character string.
Examples:
$Arr[ “SYS5”]
%Arr[ $ArrIndex]
$Arr[ ($Var1 + $Var2)]
WARNING:
This is a string expression. As such, be careful of
the case of the associative index—“SYS5” is
different from “Sys5”! Use the “UPPER()” and
“LOWER()” functions if necessary.
Advertising