In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: You can test a bit directly: [code]IF flags.5 THEN ' code runs if flags.5 = 1 ENDIF[/code] For zero you would do this: [code]IF flags.5 = 0 THEN ' code 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=371089#m371149 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)