In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: I can't remember who asked for this feature...I think is was Peter ??? But I have implemented it, so I'd like you guys to give it a good test case. Here is what I used to test it: [code] DEVICE SX28, OSC4MHZ FREQ 4_000_000 temp1 VAR BYTE PROGRAM Start NOSTARTUP Start: ' This three defines TEST0, TEST1 and TEST2 determine which of the seven FOR statements are compiled '{$UNDEFINE TEST2} '{$DEFINE TEST1} '{$DEFINE TEST0} '{$IFNDEF TEST2} '{$IFNDEF TEST1} '{$IFNDEF TEST0} FOR temp1 = 0 TO 255 '{$ELSE} FOR temp1 = 1 TO 255 '{$ENDIF} '{$ELSE} '{$IFNDEF TEST0} FOR temp1 = 2 TO 255 '{$ELSE} FOR temp1 = 3 TO 255 '{$ENDIF} '{$ENDIF} '{$ELSE} '{$IFNDEF TEST1} '{$IFNDEF TEST0} FOR temp1 = 4 TO 255 '{$ELSE} FOR temp1 = 5 TO 255 '{$ENDIF} '{$ELSE} '{$IFNDEF TEST0} FOR temp1 = 6 TO 255 '{$ELSE} FOR temp1 = 7 TO 255 '{$ENDIF} '{$ENDIF} '{$ENDIF} NEXT END [/code] Bean ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=367635 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)