Difference between revisions of "If"

370 bytes added ,  12:06, 15 June 2006
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]]
Anonymous user