Next: The ? operator Up: Conditionals Previous: Conditionals

The if statement

The if statement has the same function as other languages. It has three basic forms:

...or:

...or:

For example:-


Dave.Marshall@cm.cf.ac.uk
Fri May 20 13:40:49 BST 1994