next up previous contents index
Next: Arithmetic Statements Up: Language Elements Previous: Language Elements   Contents   Index

Variables and Expressions

Four byte unsigned integers, with case sensitive names of up to 31 characters, may be declared either at the top of the file (global variable) or within a section (local variable).
variable xxx,yyy,zzz
Constants may be declared at the top of the file by indicating the keyword const, name followed by an equals sign followed by a value:
const NSLOTS = 6
Expressions may be built up from variables and arithmetic operators: * / + - ( ). Logicalexpressions may use the conventional logical operators $<, >, ==, !=, <=, >=,$ or may use English equivalents:
is less than 
is greater than 
is equal to 
is not equal to 
is less than or equal to 
is greater than or equal to
Logical expressions may be combined using parentheses and the operators and, or ortheir c equivalents:
(xxx is greater than 7) and (yyy is 8) 
(xxx > 7) && (yyy == 8)



Mohammad Ahmed 2003-07-23