Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help [Solved] Two Conditionals on same line?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#6
RE: Two Conditionals on same line?

(06-10-2015, 03:53 PM)Kreekakon Wrote: Multiple IF conditions can be added with &&. Similarly, || would mean that the IF would run if ONE of the conditions was met.

Like say:

if(int1==2 && int2==5)

This IF would run if both int1 equaled 2 and int2 equaled 5.

And then:

if(int1==2 || int2==5)

This IF would run if any one of those two were true.

I knew I had seen this before somewhere on the wiki. But I couldn't find it. Thanks for the help Kreek. *throws you a reputation*

Discord: Romulator#0001
[Image: 3f6f01a904.png]
06-11-2015, 10:09 AM
Find


Messages In This Thread
RE: Two Conditionals on same line? - by Kreekakon - 06-10-2015, 03:53 PM
RE: Two Conditionals on same line? - by Romulator - 06-11-2015, 10:09 AM
RE: Two Conditionals on same line? - by Mudbill - 06-10-2015, 04:07 PM
RE: Two Conditionals on same line? - by Mudbill - 06-10-2015, 10:01 PM



Users browsing this thread: 1 Guest(s)