FOR( ) Statement
For-Next loops

For I=0 to 100 step 5
  code
  code
Next I

The [BREAK] in the middle of the For-Next loop will end execution of the loop, the next instruction to run will be after "//more code".
CHAR i;

FOR(i=0;i<101;i+=5)
    {
    //code
    IF (!INPUT(PIN_A0))
        {
        BREAK;
        }
    //code
    }

//more code

Any questions or comments?
 This page last updated on August 28, 2011