Exit For                                                                                                  Statement

 

EXIT FOR

 

Description

To exit from a FOR...NEXT loop and continue execution at the statement after the Next statement

 

Example

For i=1 to 20

  If mileage(i) > 5000 then

    Exit For

  End if

  ....................

  ....................

Next