Statements

Name

Description

Example

if

if-elseif-else

if flag1 (block1) flag2 (block2) true (block3)

while

while loop

while flag (block)

do-while

do-while loop

do-while (block) flag

for

for loop

for i (m n) (block)

=

assignment

= x expr

++

increment

++ count

--

decrement

-- count

call

call procedure

call method

 

p1 arg1 arg2

.. obj meth1

.. obj (meth1 arg1 arg2)

break

exit loop

 

continue

skip to bottom of loop

 

return

exit procedure

exit function

return

return expr

try

exception handling

try (block1) (exc1 evar1 (block2)...) (block3)

throw

throw exception

throw obj