Warcraft III resources & community, 2003–2006 · archived

How to add more than 2 condition in JASS script???

4 posts
#1

How to add more than 2 condition in JASS script???

I am a beginer of map maker. Now I am trying to use JASS script. But i can't add more that 2 condition. When I using return GetBooleanAnd(Condition 1, Condition 2, Condition 3) the world editor show a error when I save, can someone help me????
#2
which conditions are Condition 1, Condition 2 and Condition 3?
#3
Use this:

return Condition1 and Condition2 and Condition3 and ...


much easier :D
or, if you want to use GetBooleanAnd:

return GetBooleanAnd(Condition1, GetBooleanAnd(Condition2, Condition3))
#4
"and" is much better (faster) than "GetBooleanAnd", as it is no function...
Also, using it saves some bytes of map size. ^^