Go to the first, previous, next, last section, table of contents.

IF Statement

IF <expr> THEN <stmts> { ELSIF <expr> THEN <stmts> ... } 
[ ELSE <stmts> ] END

<expr> must be a boolean-valued expression. Here is an example:

IF Text.Equal(txt,"Strawberry") THEN
  IO.Put("Not bad")
ELSIF Text.Equal(txt,"Avacado") THEN
  IO.Put("Yuck!")
ELSIF Text.Equal(txt,"Chocolate") THEN
  IO.Put("Yum")
ELSE
  IO.Put("Nah.")
END


Go to the first, previous, next, last section, table of contents.