Is there an "or" statement?
#1

So. From what I know, and from this question. Most if not all of you will believe it's next to nothing. Is there an "or" statement, and how can I use it in an if statement? I'll give you an example of what I am trying to do.

Код:
if(gTeam[playerid] == TEAM_POLICE)
How would I add an "or" to that, so it can check if the player is a different type of law enforcer. (SWAT, FBI, CIA, or Army)?
Reply
#2

Код:
if(gTeam[playerid] == TEAM_POLICE || gTeam[playerid] == TEAM_SWAT)
Reply
#3

Thank you very much.
Reply
#4

Check out the operators here: https://sampwiki.blast.hk/wiki/Control_...ures#Operators
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)