Break statement exits a loop. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
|
Continue statement, jumps to next iteration of the loop. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample for ( var i = 0 ; i < # ; i++ )
{
} |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample for ( var item in obj )
{
} |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
|
Provides a statement with an identifier that you can refer to using a break or continue statement.
For example, you can use a label to identify a loop, and then use the break or continue statements to indicate
whether a program should interrupt the loop or continue its execution. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var i = 0, j;
outer_loop: while (i < 10) {
i++;
j = 0;
while (j < 10) {
j++;
if (j > i) continue outer_loop;
application.output("i=" + i + ", j=" + j);
}
} |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample switch( # )
{
case:
default:
} |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
|
try/catch/finally statement |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample try
{
#
}
catch(#)
{
#
} finally
{
#
} |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
|
|