Number variable

From Macros Wiki
Jump to navigationJump to search

A number variable is defined using the GLOBAL or LOCAL command.

Number variables can hole a single value or a set of values (an array). For example:
LOCAL A1, A2, A3(4), B1, B2
A1 = 4
A2 = 8
A3(1) = 2
A3(2) = 3
A3(3) = 5
A3(4) = 8
B1 = A1 + A2
B2 = A1 + A3(2) + A3(4)