Sambar Server Documentation

CScript Break Statement


The break statement is used to exit from a loop or a switch. After executing a break statement, control passes to the first statement beyond the loop or a switch.

With loops, break can be used to force an early exit from the loop, or to implement a loop with a test to exit in the middle of the loop body. A break within a loop is typically protected within an if statement which provides the test to control the loop exit condition.

© 2001 Sambar Technologies. All rights reserved. Terms of Use.