Method Summary | |
---|---|
void | break() Break statement exits a loop. |
void | const() Constant declaration. |
void | continue() Continue statement, jumps to next iteration of the loop. |
void | do while() do while loop |
void | for() for loop |
void | for each in() foreach loop |
void | if() If statement |
void | if else() If/Else statement. |
void | label() Provides a statement with an identifier that you can refer to using a break or continue statement. |
void | switch() Switch statement. |
void | try catch() try/catch statement |
void | try catch finally() try/catch/finally statement |
void | var() Variable declaration |
void | while() while loop |
Method Details |
---|
break |
void break () |
Break statement exits a loop.
|
Returns void
|
Samplebreak |
const |
void const () |
Constant declaration.
|
Returns void
|
Sampleconst #; |
continue |
void continue () |
Continue statement, jumps to next iteration of the loop.
|
Returns void
|
Samplecontinue |
do while |
void do while () |
do while loop
|
Returns void
|
Sampledo { } while ( # ) |
for |
void for () |
for loop
|
Returns void
|
Samplefor ( var i = 0 ; i < # ; i++ ) { } |
for each in |
void for each in () |
foreach loop
|
Returns void
|
Samplefor ( var item in obj ) { } |
if |
void if () |
If statement
|
Returns void
|
Sampleif ( # ) { } |
if else |
void if else () |
If/Else statement.
|
Returns void
|
Sampleif ( # ) { } else { } |
label |
void label () |
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 |
Returns void
|
Samplevar 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); } } |
switch |
void switch () |
Switch statement.
|
Returns void
|
Sampleswitch( # ) { case: default: } |
try catch |
void try catch () |
try/catch statement
|
Returns void
|
Sampletry { # } catch(#) { # } |
try catch finally |
void try catch finally () |
try/catch/finally statement
|
Returns void
|
Sampletry { # } catch(#) { # } finally { # } |
var |
void var () |
Variable declaration
|
Returns void
|
Samplevar #; |
while |
void while () |
while loop
|
Returns void
|
Samplewhile ( # ) { # } |
Overview
Content Tools
Activity