In SX Microcontrollers, SX/B Compiler and SX-Key Tool, AmitJ wrote: I think the bug with the If-Then-else statements is still present. I just downloaded the ver3.2R3 on 9/12 to upgrade from 3.1 and some of my code wouldn't compile anymore. I narrowed it down to this example: [code] DEVICE SX48, OSCHS2 FREQ 50_000_000 PROGRAM MainLoop value var byte value2 var byte MainLoop: watch value, 8, UDEC break If value = 1 Then value = 2 Else If value = 2 Then value = 4 value2 = 0 Endif value2 = 3 Endif GOTO MainLoop [/code] This will not compile. It gives me an Else or Endif without If "ENDIF" error. However if I capitalize the second if so it reads "IF value = 2 Then" then it works. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=134617#m144775 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)