So instead of this:
Code: Select all
IF colour_choice == 1 || colour_choice == 2 || colour_choice == 3
...
END
Code: Select all
SWITCH (colour_choice) {
CASE 1
...
BREAK
CASE 2
...
BREAK
CASE 3
...
BREAK
}
Code: Select all
SWITCH (colour_choice) {
CASE 1
...
BREAK
CASE 2
CASE 3
...
BREAK
}