Difference between revisions of "Talk:If"
Moved to discussion unless someone comes up with a concrete example. Professional wording and layout might help too...
imported>JOG m |
imported>JOG (Moved to discussion unless someone comes up with a concrete example. Professional wording and layout might help too...) |
||
Line 39: | Line 39: | ||
<pre>if (angleA >= 0 && angleA <= 90) || (angleA >= 180 && < 270)</pre> | <pre>if (angleA >= 0 && angleA <= 90) || (angleA >= 180 && < 270)</pre> | ||
Once my script hit this line, it stopped working completely. No indication that anything was wrong. --[[User:Mrflippy|Mrflippy]] 21:06, 15 April 2006 (EDT) | Once my script hit this line, it stopped working completely. No indication that anything was wrong. --[[User:Mrflippy|Mrflippy]] 21:06, 15 April 2006 (EDT) | ||
---- | |||
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. |