Control flow
linkIntroduction
These articles describe the control flow statements that guide execution of the program.
if - elseif - else | Conditionally executes code depending on the value of an expression |
while | Allows code to be executed repeatedly until the specified condition is no longer true |
for | Allows code to be executed repeatedly until the specified condition is no longer true |
for each | Allows looping over a set of elements |
break - continue | Allows exiting or jumping to the beginning of the loop |
switch - case | Used to execute code based on the value of an expression, chosen from among several possibilities |
try - catch | Used to execute code that might throw exceptions, controlling execution as appropriate |
throw | Used to stop execution of code to report an exception |
return | Used to terminate execution of the current method, possibly returning a value to the calling method |
folder | Allows addition of code blocks that define the context of variables |
Changed on: 05/09/2013 / From version: 9.0.3940