HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Another question about conditionals.

09-25-2010, 06:54 PM#1
syrathia
Hai guys. Lot's of questions from me recently. Thanks in advance for your help.

Are the boolean operators in JASS short circuited?

i.e. if (someBoolVal || funcThatReturnsBool())

If someBoolVal is true will it evaluate the second and call the function?


Never mind. I realized i could test it myself. And the answer is, yes, it is short circuited.

Expand Test Code:

Only "Obviously I will print" was displayed.