Program Flow Control

Top  Previous  Next

The following pages describe the various elements of the VPL programming language that control the flow of a program. The elements are divided into two groups - that is selection and iteration elements.

 

 

 

VPL offers the following language elements for conditional execution of code:

 

 

•IF-THEN-ELSE

•CASE-OF

 

 

VPL offers the following language elements for iterative execution of code:

 

 

•WHILE-DO

•FOR-TO-DO

•REPEAT-UNTIL

•BEGIN-END

 

Keywords used in combination with the above:

 

•RETURN

•EXIT

•PROGRAM

•UPDATEIO

•UPDATEOUT