0

Or in if?

I tried to code something like this : if start() == "TEST" or "Tom" or "tom" or "TOM" . . . . . . . print("whatever") But as I tried that I learned that I can't use the or (statement?) like that. So how can I do what I am trying to do here?

24th Aug 2017, 9:36 PM
Markus Beyer
Markus Beyer - avatar
2 Antworten
0
Instead of "or" you should use ||
24th Aug 2017, 9:59 PM
Adam Lesiak
Adam Lesiak - avatar
0
Didn't work, could you write code how you mean it?
27th Aug 2017, 1:53 PM
Markus Beyer
Markus Beyer - avatar