Child pages
  • Statements
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

Refresh page Apr 20, 2024 02:41

Supported Clients
SmartClient WebClient NGClient MobileClient

Methods 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

Methods Details

break()

Break statement exits a loop.

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

break
 

const()

Constant declaration.

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

const #;
 

continue()

Continue statement, jumps to next iteration of the loop.

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

continue
 

do while()

do while loop

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

do
{
}
while ( # )
 

for()

for loop

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

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

for each in()

foreach loop

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

for ( var item in obj )
{
}
&nbsp;

if()

If statement

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

if ( # )
{
}
&nbsp;

if else()

If/Else statement.

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

if ( # )
{
}
else
{
}
&nbsp;

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 whether a program should interrupt the loop or continue its execution.

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

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

switch()

Switch statement.

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

switch( # )
{
case:
default:
}
&nbsp;

try catch()

try/catch statement

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

try 
{
	#
}
 catch(#) 
{
	#
}
&nbsp;

try catch finally()

try/catch/finally statement

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

try 
{
	#
}
 catch(#) 
{
	#
} finally 
{
	#
}
&nbsp;

var()

Variable declaration

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

var #;
&nbsp;

while()

while loop

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

while ( # )
{
	#
}
&nbsp;

  • No labels