Sim hangs on IF condition

Jeremy Leach

Senior Member
I'm using 5.1.1
The sim hangs on the first line of this code (all values are words)and I have to terminate the editor.
<code><pre><font size=2 face='Courier'>
If SFValueW&lt;= ValueMax2W And SFValueW &gt;= ValueMin2W Then
FLG_SFReached = Yes
EndIf
</font></pre></code>

But I just don't understand: If this snippet of code is taken out of the program in which it's run (and the program does compile fine) then it works in the Sim. Strange.

ValueMax2W is w8,SFValueW is w12, ValueMin2w is w6.

Edited by - jeremy leach on 27/05/2007 13:23:53
 
Top