- 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..
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
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
To sum this up: False first time, true second, false third, true fourth and so on