EV Script Statements & Declarations

Dynamic content may be rendered to the page by utilising statements with an appropriate syntax or code block. Each statement may span one or multiple lines, but all statements must end with a semicolon

break

EVML break statement terminates the current loop or switch statement and transfers execution to the statement following the terminated statement.

continue

EVML continue statement stops execution of the current iteration of a loop, and continues execution of the next iteration.

do...while

EVML do...while statement creates a loop that executes a code block until the test condition evaluates to false after each iteration.

function

EVML function declaration defines a function with any number of arguments.

if...else

EVML if statements execute a code block if a specified condition is true

for

EVML for statement creates a loop governed by three optional expressions

for...in

The for...in statement iterates over the enumerable properties of an object

for...of

The for...of statement creates a loop iterating over iterable objects

switch

EVML switch statement evaluates an expression, based on case clauses, and executes statements associated with that case.

var

EVML declaring a variable in EV Script

while

EVML while statement creates a loop that executes so long a condition evaluates as true.