Switch statements

I did the Switch Statements lecture yesterday, and I am still receiving this error

Don’t know where I really went wrong, and don’t particularly want to download the source code from @ben’s git repo as I feel like I am not learning there.

Any pointers in the right direction would be appreciated here :slight_smile:

http://pastebin.com/Hm5V6WRw

Pasted all code on PasteBin as too long to put into code format here :wink:

I am having the exact same error.

http://pastebin.com/kWxHinug

When I run the debugger I get the following error:

Kind of stuck here.

Okay, managed a fix to my code and noticed it was the same in yours, OP:

The line while from the do that we changed in this section needs to have a “!=” instead of a “==”. Both of us seem to have put that in wrong and that’s what’s tossing the error instead of the loop.

Privacy & Terms