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?
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#2
RE: Two Conditionals on same line?

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.

[Image: Tv0YgQb.gif]
Image by BandyGrass
06-10-2015, 03:53 PM
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)