Break Command

Description:

The break statement terminates the execution of the nearest enclosing for or while statement in which it appears. Control passes to the statement that follows the terminated statement.

Format:

Break;

Example:

integer i;

for i = 1 to 10
    log "i = " + ToString(i);
    if ( i == 5 )
        break;
    endif
endfor

Output:

i = 1
i = 2
i = 3
i = 4
i = 5





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap