Re: New Switch Idea
- Posted by euphoric (admin) Mar 28, 2009
- 1106 views
DerekParnell said...
integer X = 1 switch X with fallthru case 1 ? 1 case 2 ? 2 end switch -- output: -- 1 -- 2
Is that output correct? If so, can somebody explain again why if the case doesn't match it still runs the code? I think it was explained before but I've forgotten the logic.
I'd expect the output above to be
-- output: -- 1