Child pages
  • Statements

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table Cell (td)
void

...

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 'class' inside the {div} macro with 'id=description'
Divcache
styleindexdisplay:none

...

iddescription

...

padding0px
width80px

...

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryvoidBreak statement exits a loop.

...

void

...

Constant declaration.

...

void

...

Continue statement, jumps to next iteration of the loop.

...

void

...

do while loop

...

void

...

for loop

...

void

...

foreach loop

...

void

...

If statement

...

void

...

If/Else statement.

...

void

...

Provides a statement with an identifier that you can refer to using a break or continue statement.

...

void

...

Switch statement.

...

void

...

try/catch statement

...

void

...

try/catch/finally statement

...

void

...

Variable declaration

...

void

...

servoy sDetail
idwhile loop

HTML Table

functionclass
Colgroup Tag
Column
padding0px
width100%
Table Row (tr)
style2100%height: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
td2Methods Detailsbreakname

break()

dessIndent
Break statement exits a loop.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
constname

const()

dessIndent
Constant declaration.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
continuename

continue()

dessIndent
Continue statement, jumps to next iteration of the loop.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
do whilename

do while()

dessIndent
do while loop
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
forname

for()

dessIndent
for loop
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
for each inname

for each in()

dessIndent
foreach loop
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
ifname

if()

dessIndent
If statement
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
if elsename

if else()

dessIndent
If/Else statement.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
labelname

label()

dessIndent
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.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
switchname

switch()

dessIndent
Switch statement.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
try catchname

try catch()

dessIndent
try/catch statement
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
try catch finallyname

try catch finally()

dessIndent
try/catch/finally statement
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
varname

var()

dessIndent
Variable declaration
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
whilename

while()

dessIndent
while loop
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow