pTAL Reference Manual (H06.08+)

Statements
HP pTAL Reference Manual523746-006
12-2
Using Semicolons in Statements
Using Semicolons in Statements
You use semicolons with statements as follows:
A semicolon is required between successive statements.
A semicolon is optional before an END keyword that terminates a compound
statement.
A semicolon must not immediately precede an ELSE or UNTIL keyword.
A semicolon alone in place of a statement creates a null statement. The compiler
generates no code for null statements. You can use a null statement wherever you
can use a statement except immediately before an ELSE or UNTIL keyword.
Compound Statements
A compound statement is a BEGIN-END block that groups statements to form a single
logical statement.
BEGIN
indicates the start of the compound statement.
statement
is a statement described in this section.
; (semicolon)
is a statement separator that is required between successive statements. A
semicolon before an END that terminates a compound statement is optional and
represents a null statement.
END
indicates the end of the compound statement.
You can use compound statements anywhere you can use a single statement. You can
nest them to any level in statements such as IF, DO, FOR, WHILE, or CASE.
BEGIN
;
;
END
statement
VST034.vsd