On Wed, 26 Aug 2009 12:51:34 -0400 Byron Jeff wrote: > Continues and breaks only work within certain constructs. Ok... The break would have taken you out of a for, if the if statement were inside a for: for (i = 0; i < 3; i++) { if (a == 1) { printf("Before break\n"); break; printf("After break\n"); } else { printf("before break in else\n"); break; printf("before break in else\n"); } } compiles ok and produces: Before break This is, of course, not an example of elegant programming, but could explain why the 'break' worked. John -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist