bm156 Conditional Executing of Commands

Program Control


 

bm156 condition heading

  bm169 condition test

  bm170 commands at condition fulfillment

  bm171 commands at condition non-fulfillment

 

The conditional executing of commands serves to branch the program depending on a condition validity. In the condition test a logical term can be quoted, which will be evaluated during program execution. If the logic term holds, a group of commands situated in the branch will be executed to fulfill the condition. Otherwise a group of commands situated in the branch for condition non-fulfillment will be executed.

 

Example of using:

 

bm172