Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Negate in trigger/jass
Negate in trigger/jass
04-28-2006, 11:31 AM
#1
n13astra
I'll get right to the point, i want to negate (NOT) a boolean variable.
So if its TRUE, it will set to FALSE, and visa versa.
The C code eqvialent for those that understand,
boolean = ~boolean;
or
boolean = !boolean;
04-28-2006, 12:19 PM
#2
Vexorian
set boolean = not boolean
04-28-2006, 12:50 PM
#3
n13astra
thank you, i feel kinda stupid that i didnt try that myself!