IF - THEN - Instruction :



next up previous contents
Next: WHILE - Instruction Up: The Language Previous: IF - Instruction

IF - THEN - Instruction :

       IF ( numeral or numeral formula )
       {
          any sequence of commands 
       }
       THEN
       {
          any sequence of commands 
       }

If the result of the expression in brackets is different from 0, the first block is executed. If the result is 0, the second block is executed.

Please note that an exclamation mark to terminate the blocks is not necessary.




Thu Aug 3 12:51:32 MET DST 1995