script :
1 | local job = string.split(str, "," ) |
2 | if job [ 1 ] = = "Visitor" or "Raider" then |
3 | print (job [ 1 ] ) |
4 | end |
for some reason even when job[1] string isn't visitor or raider it still passes and prints job[1] and I don't know why, any ideas?
You can't just use or you need to check the value again.
1 | local job = string.split(str, "," ) |
2 | if job [ 1 ] = = "Visitor" or job [ 1 ] = = "Raider" then |
3 | print (job [ 1 ] ) |
4 | end |