In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Even your original code is working harder than it has to; here's how to do it easily in SX/B: [code]IF hrs < $12 THEN ' good morning ELSEIF hrs < $18 THEN ' good afternoon ELSE ' good evening ENDIF[/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=184018#m184033 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)