Indexi
ZPL doesn’t need subscripts, but it is still useful to have indices.
Indexi is a (compiler created) constant array giving the value of the ith subscript
[1..50] A := 2*Index1;-- A=even nums 2 to 100
Index1 in this instance is 1 2 3 4 5 ... 50
The “i” must be a number of a legal dimension
[1..n,1..n] Ident := Index1=Index2;--1s on diag
[1..2,1..2] Ident := 1 1 = 1 2 1 0
2 2 1 2 0 1
Indexi arrays are logical, they use no storage
It is not legal to assign to Indexi