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
how can I use 2 If statements in 1 function?
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: how can I use 2 If statements in 1 function?

(07-22-2012, 01:07 PM)JMFStorm Wrote: Here's one example from my mod:

if(GetLocalVarInt("Book1Pulled") == 1 and GetLocalVarInt("Book3Pulled") == 0){
SetLocalVarInt("Book1and2PulledInRightOrder", 1);
}

I guess this should get you started.
should you really write and? don't you need to write &&?

07-22-2012, 05:07 PM
Find


Messages In This Thread
RE: how can I use 2 If statements in 1 function? - by SilentStriker - 07-22-2012, 05:07 PM



Users browsing this thread: 1 Guest(s)