Pascal Programming/Cheatsheet
Syntax cheat sheet
edit A reader requests expansion of this page to include more material. You can help by adding new material (learn how) or ask for assistance in the reading room. |
monospaced
denotes keywords and syntax- [ ] denotes optional syntax
- | denotes multiple possible syntaxes
- ( ) denotes grouped syntax
Statements
editsyntax | definition | availability |
---|---|---|
if condition then begin statement(s) end;
|
Conditional statement | standard |
while condition do begin statement(s) end;
|
while loop
|
standard |
repeat statement(s) until condition;
|
repeat loop
|
standard |
with variable do begin statement(s) end;
|
Eases the use of a variable or pointer variable of a structured type by omitting the dot notation for the variable. | standard |