Exit/Break
Command to exit a loop immediately, independet of the normal condition.
Example1:
' Option 1 for i=0 to 10 if i>6 then exit endif next ' Option 2 for i=0 to 10 when i>6 do exit next
Example2:
' Option 1 while a>0 if value=20 then exit endif wend ' Option 2 while a>0 when value=20 do exit wend
Example3:
' Option 1 do a = uart.read if a=13 then exit endif loop ' Option 2 do a = uart.read when a=13 do exit loop