**Conditional Statements** I'm getting an error in one of my modules and I don't understand why

I’m not sure why I’m getting this error when trying to code using the switch keyboard.

The way that I have it typed looks identical to the example they give. At least to me it does.

Any ideas, fellow coders?

Hey there, welcome to the forums!

Are you sure that your } else { block should be there? Is it part of a switch statement?

That’s what the error is showing, anyway… :wink:

1 Like

Thank you! Haha, I didn’t want to view the solution because it always just solves the full equation for you and shows you all the parts. I like to do it step by step by myself.

You were correct…I jumped the gun and assumed they wanted an else statement…but it was a ‘default’ statement instead.

Thanks again! :smiley:

1 Like