PPT ½½¶óÀ̵å
- The if / else statement allows operations to be performed based on certain conditions. It has three basic forms.
processbeginif ( boolean expression ) thensequential statements;end if ;
processbeginif ( boolean expression ) thensequential statements ;else sequential statements ; end if ;
processbeginif ( boolean expression ) thensequential statements ;elsif ( boolean expression ) then sequential statements ; elsif ( boolean expression ) then sequential statements ; end if ;