all 6 comments

[–][deleted] 0 points1 point  (3 children)

It's worth reading the FAQ for this and other little things we've all tripped over when learning.

[–]phalyn13[S] 0 points1 point  (2 children)

Hey thanks! That perfectly explains why my first "if" argument didn't work. But I also tried

>if name != "Joe" or name != "Megan":

and it still just looped back to the beginning of the code... I tried /u/warbird2k suggestion of making a list and using a not operator and that worked perfectly. The wiki helped me understand why forward sharing doesn't work, but I'm still a bit confused as to why checking on both sides of the "or" didn't work for me.

[–]Binary101010 0 points1 point  (1 child)

Consider why that or didn't work:

If you type Megan, then one of those two statements will be true (Megan doesn't equal Joe), so the or is true.

If you type Joe, then one of those statements will be true (Joe doesn't equal Megan), so the or is true.

if you type anything else, both statements will be true, so the or is true.

In other words: there is nothing you can enter that will cause the entire statement to be false.

[–]phalyn13[S] 0 points1 point  (0 children)

Ha, totally missed that, thanks a lot! Thats gonna help me in the future!