Home Segments Top Top Previous Next

387: Mainline

The ifelse statement is like the if statement, except that a second embedded statement follows else:

if (Boolean expression) 
  if-true statement 
else 
  if-false statement 

The if-false statement is executed if the Boolean expression evaluates to false.