In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: [code] LOOKDOWN Menu_Selection, "F", "B", "S", Menu_Index ' compare against valid commands BRANCH Menu_Index, Forward, Backward, Stop_Bot ' execute valid command [/code]This can be done easier with the ON...GOTO command like: [code] ON Menu_Select = "F", "B", "S" GOTO Forward, Backward, Stop_Bot [/code] Check out the help file for command "ON", it's very handy. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=159140#m159335 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)