Local and global variables are declared using the LOCAL and GLOBAL statements, respectively.
The LOCAL statement is used to declare one or more local variables of a particular type. This statement has the basic form:
LOCAL [type] name [,name ,name...]
where
[type] is the type of local EASI variable to declare. Default is double. [name] is the name of a local EASI variable to declare
If no type declaration follows a LOCAL statement, EASI assumes the declaration type to be double, however it is generally considered sloppy programming practice to declare a variable without explicitly specifying its type.
The GLOBAL statement has the same syntax as the LOCAL statement:
GLOBAL [type] name [, name, name,...]
where
[type] is the type of global EASI variable to declare. Default is double. [name] is the name of a global EASI variable to declare
The GLOBAL and LOCAL declaration statements may be used any number of times at any place within a procedure. The variable that is declared becomes available to the procedure immediately after the declaration statement is executed by EASI.
Example:
LOCAL INTEGER first, second, third LOCAL DOUBLE distance, speed, i LOCAL STRING winner, teamname, mvp
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.