Controlling Program Execution

The following statements control the execution of a program.

A program generally executes from the first line of code to the last line of code. You can also execute certain procedures within the program according to specific conditions, or repeat a section of the program within a sub-procedure or function. You can use loops to repeat parts of a program as many times as necessary, or until a certain condition is met. These type of control statements are classified as Condition, Loop, or Jump statements.

Skilyrðingar

The following statements are based on conditions.

Endurtaka

The following statements execute loops.

Skrykkjóttur

The following statements execute jumps.

Aðrar skipanir

Statements that do not belong to any of the other categories are described here.