Page 1 of 1

A simply question.

Posted: October 18th, 2009, 11:18 am
by [=ryCgg=]
What is the difference between 'true' and 'false' in JASS?

Re: A simply question.

Posted: October 18th, 2009, 11:37 am
by Hillo
One is true and the other one is false ? Used on booleans and condition checks.

Re: A simply question.

Posted: October 18th, 2009, 12:01 pm
by [=ryCgg=]
Hillo wrote:One is true and the other one is false ? Used on booleans and condition checks.

LOL.

Hmm, any examples?

Re: A simply question.

Posted: October 18th, 2009, 12:19 pm
by Hillo

Code: Select all

boolean hillorules = true


Code: Select all

function hillorullz
call ExecuteFunc"lolo hillo fails"
if hillorules then
call ExecuteFunc"lolo hillo rules"
endif
endfunction


So it checks if boolean hillorules is true and if it is, then it does

Code: Select all

call ExecuteFunc"lolo hillo rules"

Re: A simply question.

Posted: October 18th, 2009, 12:36 pm
by infernorock
Another simply answer is:
A: Did hillo rocks
B: Maybe
Conclusion: hillo ROCKS

Like math =)

Correct me if wrong XD

Re: A simply question.

Posted: October 18th, 2009, 12:51 pm
by [=ryCgg=]
Icic.. Thanks for the tips..

Hillo fails...