In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote: From source examples and the SX/B help file I can see several different ways of structuring IF THEN statements. Is there a preferred method for readability of SX/B code? I can write it several different ways and if there is best practice and established convention i'd rather follow that to start with. In particular the example below: Wait_Ack: IF ACK = 0 THEN GOTO Wait_Ack: ENDIF or Wait_Ack: IF ACK = 0 THEN Wait_Ack or Wait_Ack: IF ACK = 0 GOTO Wait_Ack I've got my programs working as expected and just want to make sure they are going to be easy to follow for someone else. Best Regards, Robert ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=167928 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)