+ 2

why is 'senior' still outputted in this case? I understand that '42' and 'default' outputs because the criteria matches and there is no break, but 'senior' is still false is it not?

19th Jun 2016, 7:35 AM
Ivan L
Ivan L - avatar
3 Respostas
+ 1
Where is the code?
19th Jun 2016, 8:46 AM
James Flanders
0
lol just copy/past the code
1st Nov 2016, 7:09 PM
Nathan Bodet
Nathan Bodet - avatar
0
oh.... actually this happened because of not using the break when the case met true it executed all the following commands
8th Jan 2017, 12:59 PM
Nikhil Patil
Nikhil Patil - avatar