Child pages
  • Statements

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rev: 1381949650879

...

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#breakbreak()
Break statement exits a loop.
tbody
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#constconst()
Constant declaration.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#continuecontinue()
Continue statement, jumps to next iteration of the loop.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#do do while()
do while loop
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#forfor()
for loop
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#for for each in()
foreach loop
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#ifif()
If statement
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#if if else()
If/Else statement.
tbody
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#labellabel()
Provides a statement with an identifier that you can refer to using a break or continue statement.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#switchswitch()
Switch statement.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#try try catch()
try/catch statement
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#try try catch finally()
try/catch/finally statement
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#varvar()
Variable declaration
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#whilewhile()
while loop

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idbreak
Table Row (tr)
idname
Table Cell (td)
break
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
break
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Break statement exits a loop.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

break

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idconst
Table Row (tr)
idname
Table Cell (td)
const
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
const
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Constant declaration.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

const #;

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcontinue
Table Row (tr)
idname
Table Cell (td)
continue
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
continue
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Continue statement, jumps to next iteration of the loop.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

continue

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
iddo while
Table Row (tr)
idname
Table Cell (td)
do while
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
do while
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
do while loop
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

do
{
}
while ( # )

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idfor
Table Row (tr)
idname
Table Cell (td)
for
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
for
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
for loop
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

for ( var i = 0 ; i < # ; i++ )
{
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idfor each in
Table Row (tr)
idname
Table Cell (td)
for each in
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
for each in
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
foreach loop
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

for ( var item in obj )
{
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idif
Table Row (tr)
idname
Table Cell (td)
if
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
if
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
If statement
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

if ( # )
{
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idif else
Table Row (tr)
idname
Table Cell (td)
if else
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
if else
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
If/Else statement.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

if ( # )
{
}
else
{
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idlabel
Table Row (tr)
idname
Table Cell (td)
label
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
label
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

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.

Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

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);
	}
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idswitch
Table Row (tr)
idname
Table Cell (td)
switch
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
switch
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Switch statement.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

switch( # )
{
case:
default:
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idtry catch
Table Row (tr)
idname
Table Cell (td)
try catch
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
try catch
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
try/catch statement
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

try

...


{
	#
}
 catch(#)

...


{
	#
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idtry catch finally
Table Row (tr)
idname
Table Cell (td)
try catch finally
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
try catch finally
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
try/catch/finally statement
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

try

...


{
	#
}
 catch(#)

...

{
	#
} finally

...

{
	#
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idvar
Table Row (tr)
idname
Table Cell (td)
var
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
var
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Variable declaration
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

var #;

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idwhile
Table Row (tr)
idname
Table Cell (td)
while
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
while
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
while loop
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

while ( # )
{
	#
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)