- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
What is more computationally expensive for WC3? Evaluating a string of if statements, or a string of a single if followed by elseif statements?
Suppose that the truth values of A, B, C are not related, but simply possible values that need to each have a check. In the case where A,B,C are not independent, then of course it makes sense to use elseif. But I am not referring to that case, therefore don't bring it up
What is more computationally expensive for WC3? Evaluating a string of if statements, or a string of a single if followed by elseif statements?
Suppose that the truth values of A, B, C are not related, but simply possible values that need to each have a check. In the case where A,B,C are not independent, then of course it makes sense to use elseif. But I am not referring to that case, therefore don't bring it up
JASS:
if A then
endif
if B then
endif
if C then
endif
JASS:
if A then
elseif B then
elseif C then
endif