Please enable JavaScript to view this site.

ESL Documentation

The variable statement defines one or more variables. A variable must be defined before it is referenced. When you define a variable, you define its type by specifying the keyword integer, float, string, or boolean. If no type is specified, string is the default.

 

For example:

 

integer variable Index

 

If you specify a variable type, you can omit the keyword variable, such as:

 

boolean MainframeIsDown            # defaults to variable 

 

If you omit the type, however, you must specify the keyword variable; for example:

 

variable Counter                   # defaults to string