The Select..Case statement is a special instance of the IF structure. To implement multi-way decisions the statement provides a more concise and elegant representation than multiple and statements, which can get very difficult to follow. Probably if you have more than three conditional statements you should consider using the Select..Case statement instead.
Here is an example algorithm
- Ask user to input a number between 1 and 7
- select case number
- Case is = 1 Display “Sunday”
- Case is = 2 Display “Monday”
- Case is = 3 Display “Tuesday”
- Case is = 4 Display “Wednesday”
- Case is = 5 Display “Thursday”
- Case is = 6 Display “Friday”
- Case is = 7 Display “Saturday”
- Case else Display “Error”
- End Select