Uzername
B.S., M.S., M.A., Ph.D.
- Joined
- May 30, 2009
- Messages
- 88
- Gender
- Male
- HSC
- 2011
'Sup guys
firstly, the name is innovative and funny, lol 'Bored of Studies'
Anyways,
in pseudocode, there is multiway selection. (more than 2 options). Is it necessary to have a CASE ELSE statement?
examples
is this correct?
SELECT CASE choose ice cream topping
Case CHOC: select chocolate flavoured topping
Case STRAW: select strawberry flavoured topping
CASE ELSE: select no topping/do nothing
END CASE
or
SELECT CASE choose ice cream topping
Case CHOC: select chocolate flavoured topping
Case STRAW: select strawberry flavoured topping
Case NONE: select no topping for icecream.
END CASE
so it necessary for a 'CASE ELSE' statement?
Thanks verymuch.
firstly, the name is innovative and funny, lol 'Bored of Studies'
Anyways,
in pseudocode, there is multiway selection. (more than 2 options). Is it necessary to have a CASE ELSE statement?
examples
is this correct?
SELECT CASE choose ice cream topping
Case CHOC: select chocolate flavoured topping
Case STRAW: select strawberry flavoured topping
CASE ELSE: select no topping/do nothing
END CASE
or
SELECT CASE choose ice cream topping
Case CHOC: select chocolate flavoured topping
Case STRAW: select strawberry flavoured topping
Case NONE: select no topping for icecream.
END CASE
so it necessary for a 'CASE ELSE' statement?
Thanks verymuch.