--- Command; defaults 0; group 1 --- -
INTEGER....command to declare up to 100 integer PIL variables. For example: INTEGER(I1,I2,I3,I4) makes I1, I2, I3 and I4 recognised as local working variables.
INTEGER may be abbreviated to INT.
Any name can be used, up to 6 characters, eg INTEGER(NXDASH).
Values are ascribed to such variables can be set in the usual way (eg I1=37); and they are also recognized on the right-hand side of assignment statements (eg LSWEEP=I1 sets LSWEEP to the current value of I1 ie 37 ).
They are also recognized in arguments of other argument-setting commands, eg INTEGER(NXD,NYD,NZD); PATCH(SOURCE,LOW,1,NXD,1,NYD,1,NZD,1,1)
Integer variables can be combined by means of any of the following arithmetic operators: +,-,*,/,**,) and (. The operands can be any combination of integer and real numbers, PIL variables, array elements and user-declared variables.
Users should note that the Satellite will take the integer form of the operator first. For instance, I = 0.5 * 20.4 gives 0 since it is evaluated as I = 0 * 20.
In interactive work, the current set of user-declared integer variables, and the values assigned to them, may be displayed by entering the command SEE I.
The default provision of up to 100 variables can be enlarged by re-dimensioning in the MAIN program of the SATELLITE. See DIMENS for further information.
See PHENC entry: PIL