Early termination of a Repeat loop.
Syntax: Exit Repeat
Example:
Repeat 10 If PORTB.0=1 Then Exit Repeat ' Exit the repeat loop if PORTB.0=1 PORTA=PORTA+1 End Repeat
Also See: Repeat, Continue Repeat