next up previous contents
Next: Resolution Up: Basic concepts Previous: Loops   Contents

Conditionals

The conditional statement of the form
  if(cond)
    block1
  else
    block2
executes block1 if cond is true, and block2 if cond is false. The evaluation of the condition takes exactly zero time.

2003-01-07