• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[vJASS] Make the first instance always go through...

Status
Not open for further replies.
Level 11
Joined
Dec 5, 2009
Messages
846
Hey there guys! I need some help here.
I think I've done this before but I really can't remember how...(im new to jass)
I want to make like a sort of a boolean which is false from the beginning, and first time this trigger runs it will always go through the if conditions. However it will turn to true and next time the trigger runs it wont go through the if conditions..
JASS:
         local boolean boo = false
     if(boo == false) then
        set boo = true    
    else
        set boo = false
      endif
something like that but this doesn't work because it will always result in false..
To sum this up: False first time, true second, false third, true fourth and so on
 
Status
Not open for further replies.
Top