Image bm156.GIF Conditional Executing of Commands
Program Control
Image bm156.GIF condition heading
Image bm169.GIF condition test
Image bm170.GIF commands at condition fulfillment
Image bm171.GIF 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:
Image bm172.GIF

Full Html Context Help of The Peter - Gemtree Software & Children Programming