First page Back Continue Last page Graphics

IF-THEN-ELSE STATEMENT

  • if (condition)
  • {
  • // statements <-- THEN
  • } else {
  • // statements <-- ELSE
  • }
  • If condition is true, execute the THEN statement(s).
  • If condition is false, execute the ELSE statement(s).