HP Pascal/iX Reference Manual (31502-90022)

5- 2
CONST
This reserved word indicates the beginning of one or more
constant
definitions that introduces an identifier as a synonym for a constant
value. The identifier may then be used in place of that value.
Constant definitions appear after the program header or any LABEL
declarations, and before any procedure or function definitions. In HP
Pascal, CONST, TYPE, VAR, MODULE, and IMPORT definitions may be
intermixed.
Syntax
Const_decl:
Example
PROGRAM show_CONST;
LABEL 1;
TYPE
type1 = integer;
type2 = Boolean;
str1 = string[5];
CONST
const1 = 3.1415; { constant }
const2 = true;
strconst = str1['abcde']; { string_constructor }
VAR
var1 : type1;
BEGIN
END.
For examples of structured constants, see the appropriate sections.
false
This predefined
Boolean
constant is equal to the
Boolean
value
false
.
The ordinal value of
false
is 0.
Example
PROGRAM show_false(output);
VAR
what, lie : Boolean;
BEGIN
IF false THEN writeln('Always false, never printed.');