Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Conditions as variables.
Conditions as variables.
11-27-2006, 03:08 AM
#1
Jazradel
What variable type would I use to store a boolean expression and be able to use it in an if/then statement later?
I'm currently using boolexpr but I need something that would force them to evaluate and return a boolean.
11-27-2006, 03:13 AM
#2
PipeDream
To evaluate a condition or boolexpr,
JASS:
call
TriggerAddCondition
(
t
,
tc
)
set
somebool
=
TriggerEvaluate
(
t
)
11-27-2006, 03:20 AM
#3
Jazradel
Thanks for your help.
11-27-2006, 12:56 PM
#4
Anitarf
Here
is a function that does it. Might be a bit outdated regarding memory leaks/handle corruption, though.