Child pages
  • Statements

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Divcache
Div
iddescription
HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Row (tr)
Table Cell (td)
void
Table Cell (td)break()
styleindexdisplay: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.

true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable
id

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryvoidBreak statement exits a loop. Table Row (tr) Table Cell (td) Table Cell (td)const()
voidConstant declaration. Table Row (tr) Table Cell (td) Table Cell (td)continue()
voidContinue statement, jumps to next iteration of the loop. Table Row (tr) Table Cell (td) Table Cell (td)voiddo while ()
do while loop Table Row (tr) Table Cell (td) Table Cell (td)voidfor ()
for loop Table Row (tr) Table Cell (td) Table Cell (td)for each in()
voidforeach loop Table Row (tr) Table Cell (td) Table Cell (td)if()
voidIf statement Table Row (tr) Table Cell (td) Table Cell (td)if else()
voidIf/Else statement. Table Row (tr) Table Cell (td) Table Cell (td)label()
voidProvides a statement with an identifier that you can refer to using a break or continue statement. Table Row (tr) Table Cell (td) Table Cell (td)switch()
voidSwitch statement. Table Row (tr) Table Cell (td) Table Cell (td)voidtry catch()
try/catch statement Table Row (tr) Table Cell (td) Table Cell (td)voidtry catch finally()
try/catch/finally statement Table Row (tr) Table Cell (td) Table Cell (td)var()
voidVariable declaration Table Row (tr) Table Cell (td) Table Cell (td)voidwhile ()
while loop

HTML Table

functionclass Colgroup Tag Colcolspanservoy sDetail2width100%

Col
Table Head (thead) Table Row (tr)styleheight:30px;
Table Head (th)
colspan2
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
2Methods Detailsbreakname

break()

dessIndentBreak statement exits a loop.
Table Row (tr)idret

Table Cell (td)

Returns

div 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
sIndentclients

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)
 

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
constname

const()

dessIndentConstant declaration.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
continuename

continue()

dessIndentContinue statement, jumps to next iteration of the loop.
Table Row (tr)idret

Table Cell (td)

Returns

divsIndentclients

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

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
do whilename

do while()

dessIndentdo while loopret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
forname

for()

dessIndentfor loopret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
for each inname

for each in()

dessIndentforeach loopret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
ifname

if()

dessIndentIf statementret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
if elsename

if else()

dessIndentIf/Else statement.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
labelname

label()

dessIndentProvides 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
Table Row (tr)id whether a program should interrupt the loop or continue its execution.tdret

Returns

divsIndentclients

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) 

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
switchname

switch()

dessIndentSwitch statement.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
try catchname

try catch()

dessIndenttry/catch statementret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
try catch finallyname

try catch finally()

dessIndenttry/catch/finally statementret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
varname

var()

dessIndentVariable declarationret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;
whilename

while()

dessIndentwhile loopret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow&nbsp;