Magic 8 ball else if problem

It keeps showing up the same answer and it wont change the fortune, let me know how i can fix this

i know how to do this in switch statement but i wan to know how to do this in if=else

It looks like you are using an assignment operator (=) in your if statements. This is for setting a value. You want a comparison operator, either == or ===.

1 Like

heck yeah that did the work thanks man

1 Like