Statement
|
Description
|
break
|
Terminates the current loop or associated statement.
|
@cc_on
|
Activates conditional compilation support.
|
Comment
|
Causes comments to be ignored by the JScript parser.
|
continue
|
Stops the current iteration of a loop and starts a new iteration.
|
do...while
|
Executes a block once, and then repeats execution of the loop until a conditional expression evaluates to False.
|
for
|
Executes a block of statements as long as a specified condition is True.
|
for...in
|
Executes a statement for each element of an object or array.
|
function
|
Declares a new function.
|
@if
|
Conditionally executes a group of statements depending on the value of an expression.
|
if...else
|
Conditionally executes a group of statements depending on the value of an expression.
|
Labeled
|
Provides an identifier for a statement.
|
return
|
Exits from the current function and returns a value from that function.
|
@set
|
Allows creation of variables used in conditional compilation statements.
|
switch
|
Enables the execution of one or more statements when a specified expression's value matches a label.
|
this
|
Refers to the current object.
|
var
|
Declares a variable.
|
with
|
Establishes the default object for a statement.
|
while
|
Executes a statement until a specified condition is False.
|