Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Cache
indextrue
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.voidConstant declaration.voidContinue statement, jumps to next iteration of the loop.voiddo while loopvoidfor loopvoidforeach loopvoidIf statementvoidIf/Else statement.voidProvides a statement with an identifier that you can refer to using a break or continue statement.voidSwitch statement.voidtry/catch statementvoidtry/catch/finally statementvoidVariable declarationvoidwhile loop

functionservoy sDetail2100%height:30px2Methods Detailsbreakname

break()

dessIndent
Break statement exits a loop.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRowconstname

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