spec

Software for Diffraction

2.3.17.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.