In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: SX/B does have BIT variables, but BIT variables do not support "AND" (mainly because the SX assembly doesn't support bit operators). You can do something like: IR_IN_Center = IR_IN_Left IF IR_IN_Center = 1 THEN IR_IN_Center = IR_IN_Right ENDIF Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=178741#m178766 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)