The DECLARE command allows you to define your own variables. Variables may be one of five types - the first letter of the type indicates the format and the following digit or digits indicates the amount of storage to be allocated for each array element (in bytes).
| Variable type | Mnemonic |
| Logical | L4 or l4 |
| Integer | I4 or i4 |
| Real | R4 or r4 |
| Double precision | R8 or r8 |
| Character*n | Cn or cn (
|
Additionally, variables of any type may be singly dimensioned arrays (vectors). I expect to be able to include multiply dimensioned arrays in the near future.
The DECLARE command has two prompts:
Examples:
>> declare n i4 ! integer variable N
>> declare a(5) l4 ! logical array A of length 5