Child pages
  • Statements

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
{div:style=}
Wiki Markup
Div
styledisplay:none

DO

NOT

EDIT

THE

CONTENT

OF

THIS

PAGE

DIRECTLY

(EXCEPT

INSIDE

THE

DIV

BELOW

WITH

ID=DESCRIPTION),

UNLESS

YOU

KNOW

WHAT

YOU'RE

DOING.


THE

STRUCTURE

OF

THE

CONTENT

IS

VITAL

IN

BEING

ABLE

TO

AUTO

UPDATE

THE

CONTENT

THROUGH

THE

DOC

GENERATOR.

\\ \\ Enter additional information related to this



Enter additional information related to this 'class'

inside

the

\

{div}

macro

with

'id=description'

{div} {div:id=description}{div}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}void{td}{td}[#break]\() Break statement exits a loop.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#const]\() Constant declaration.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#continue]\() Continue statement, jumps to next iteration of the loop.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#do while]\() do while loop{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#for]\() for loop{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#for each in]\() foreach loop{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#if]\() If statement{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#if else]\() If/Else statement.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#label]\() Provides a statement with an identifier that you can refer to using a break or continue statement.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#switch]\() Switch statement.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#try catch]\() try/catch statement{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#try catch finally]\() try/catch/finally statement{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#var]\() Variable declaration{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#while]\() while loop{td}{tr}{tbody}{table}\\ {table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=break}{tr:id=name}{td}h6.break{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}break{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Break statement exits a loop.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} break {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=const}{tr:id=name}{td}h6.const{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}const{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Constant declaration.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} const #; {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=continue}{tr:id=name}{td}h6.continue{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}continue{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Continue statement, jumps to next iteration of the loop.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} continue {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=do while}{tr:id=name}{td}h6.do while{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}do while{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}do while loop{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} do { } while ( # ) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=for}{tr:id=name}{td}h6.for{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}for{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}for loop{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

Div
iddescription


HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#break()
Break statement exits a loop.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#const()
Constant declaration.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#continue()
Continue statement, jumps to next iteration of the loop.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#do while()
do while loop
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#for()
for loop
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#for each in()
foreach loop
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#if()
If statement
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#if else()
If/Else statement.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#label()
Provides a statement with an identifier that you can refer to using a break or continue statement.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#switch()
Switch statement.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#try catch()
try/catch statement
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#try catch finally()
try/catch/finally statement
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#var()
Variable declaration
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#while()
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++ )
{
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=for each in}{tr:id=name}{td}h6.for each in{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}for each in{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}foreach loop{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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
) { } {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=if}{tr:id=name}{td}h6.if{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}if{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}If statement{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
 )
{
}
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 ( # )
{
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=if else}{tr:id=name}{td}h6.if else{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}if else{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}If/Else statement.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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
{ } {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=label}{tr:id=name}{td}h6.label{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}label{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
{
}
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);
	}
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=switch}{tr:id=name}{td}h6.switch{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}switch{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Switch statement.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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:
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=try catch}{tr:id=name}{td}h6.try catch{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}try catch{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}try/catch statement{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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(#) 
{
	#
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=try catch finally}{tr:id=name}{td}h6.try catch finally{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}try catch finally{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}try/catch/finally statement{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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 
{
	#
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=var}{tr:id=name}{td}h6.var{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}var{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Variable declaration{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} var #; {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=while}{tr:id=name}{td}h6.while{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}while{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}while loop{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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 ( # )
{
	#
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Table Row (tr)
classlastDetailRow
Table Cell (td)