Difference between revisions of "If"
added note, for justification see Questions: Quest Scripting Question
imported>JOG (gave it a more professional look) |
imported>Omzy (added note, for justification see Questions: Quest Scripting Question) |
||
Line 133: | Line 133: | ||
Also, | |||
Sometimes a runtime error will occur where: | |||
<pre> if cond1 && cond2 | |||
;code | |||
endif</pre> is not evaluated correctly in scripts. If you find a similar conditional statement is not functioning correctly, try: | |||
<pre> if cond1 | |||
if cond2 | |||
;code | |||
endif | |||
endif</pre> | |||
The reason for this anomaly is currently unknown. | |||
[[Category:Commands]] | [[Category:Commands]] |