Contents | Prev | Next | Index


If Statements

if_stmt           ::= IF boolean_expr then_stmt else_stmt
                  ::= IF boolean_expr then_stmt    
boolean_expr      ::= expr                           
then_stmt         ::= THEN stmt                 
else_stmt         ::= ELSE stmt                 

If statements specify the conditional execution of statements. The expression following the symbol IF is of type BOOLEAN. If the boolean expression evaluates evaluates to TRUE, then its associated statement sequence is executed. If it evaluates to FALSE, the statement following the symbol ELSE is executed, if present. Each ELSE refers to the nearest preceding IF part.


Contents | Prev | Next | Index

Canterbury Pascal for JVM  (Last documentation update Sep 02, 2004)
Copyright © 1999-2004 J.Neuhoff - mhccorp.com  . All rights reserved.
Please send any comments or corrections to neuhoff@mhccorp.com