Selection

Think about the decision to be made:

  • What choices does the program have to decide between?
  • How will it decide?
  • What are the conditions for each possibility?

If you have more than 3 possible outcomes you might consider using the Select Case construct, otherwise use If…Then.

Relational operators     show
Logical operators     show
Example code – If...Then     show
Example code – Select Case     show
Conditions quiz



Back to index

mph@ghscomputing.co.uk

Updated 27 March 2019