Operator for "OR"? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Operator for "OR"? (
/showthread.php?tid=307788)
Operator for "OR"? -
Scarred - 01.01.2012
I'm trying to do this:
pawn Код:
if(Open == 1 (OR) Admin >= 1)
{
//blah
}
How would I do that? Is there something like a boolean operator for it, or?
Re: Operator for "OR"? -
Azzeto - 01.01.2012
Two Lines || is or
Re: Operator for "OR"? -
Scarred - 01.01.2012
Wow, I'm dumb haha. Thank ya.
Re: Operator for "OR"? -
Azzeto - 01.01.2012
Anytime.
Re: Operator for "OR"? -
EvgeN 1137 - 01.01.2012
Re: Operator for "OR"? -
jamesbond007 - 01.01.2012
Quote:
Originally Posted by EvgeN 1137
|
No.
only noobs do that.
Re: Operator for "OR"? -
dr.pepper - 01.01.2012
Dude gtfo, I still do that to my scripts.
Re: Operator for "OR"? -
Scarred - 01.01.2012
Quote:
Originally Posted by jamesbond007
No.
only noobs do that.
|
What's it matter? It's still the same thing, and if it helps you understand it more; why not?
Re: Operator for "OR"? -
Sting. - 01.01.2012
What you mean you still do it in your scripts?
Re: Operator for "OR"? -
Steven82 - 01.01.2012
Quote:
Originally Posted by jamesbond007
No.
only noobs do that.
|
Only noobs call people noobs. Apple doesn't fall far from the tree my friend.