Welcome | spec | C-PLOT | Support | Users | Contact
 
Contents -> REFERENCE MANUAL -> Syntax Description -> Flow Control -> Conditional Statement
spec Manual


2.3.15.1. - Conditional Statement



The forms of the conditional statement are
    if ( expression ) statement
    if ( expression ) statement else statement
    
The expression is evaluated in both cases. If nonzero, the first statement is executed. In the second form, if expression is zero, the second statement is executed. Each else is always matched with the last else-less if within the same statement block.


  Top
  Prev | Next