<< Click to Display Table of Contents >> Navigation: Script Language > Statements |
List of supported statements:
Assignment:
<variable or property> := <expression>;
(including compound assignments +=, -=, *=)
if <expression> then
<statement>
[else <statement>]
for <variable> := <from expression> to <to expression> do
<statement>
for <variable> in <expression> [index <variable>] do
<statement>
"for in" statement has optional index variable which is set to current loop iteration.
Note that when using with string starting with 1 (ZEROBASEDSTRINGS OFF) loop will start from 1.
loop variable can be declared inside for statement, with or without type:
for var i: integer := 1 to N do
for var i := 1 to N do
while <expression> do
<statament>
repeat
<statement>
until <expression>
case <expression> of
<expression>: <statement>;
..
<expression>: <statement>;
[ else <statement> ]
end;
case expressions can be of any type.
raise <exception object>;
try
<statement>
except
[on <variable>: <type> do ]
<statement>
end;
try
<statement>
finally
<statement>
end;