I got a game with 4 different gamemodes, I want the game to run different lines of codes for gamemodes 'Skirmish', 'Free for all', 'Rushdown' then for the gamemode 'Juggernaut'. I used these lines to script the first 3 ones.
if foundgamemode == 'Skirmish' or 'Free for all' or 'Rushdown' then
print(foundgamemode)
--then some other stuff here that isn't improtant
So the strange thing is that when the foundgamemode (just gamemode but I called it with just another name) == 'Juggernaut' then the script still runs the lines for the other 3 gamemodes for a reason. And when it prints the gamemode, the gamemode == 'Juggernaut', why is this happening, help!

2 comments
I don't understand WHY I used it wrong, as I don't understand your explanation, BUT I understand how I need to do that. Could you maybe re-explain why you can't use if = or or?
I'm pretty sure he's saying that you can use | if (condition) or (condition) or (condition) then |. You just have to compare the string every single time you check it. Otherwise you're just saying | if 'Free for all' then | after the first 'or'.