MS JScript JavaScript Tutorial

Syntax

@if (condition1)
      statement1
    @elif (condition2)
      statement2
    @else
      statement3
    @end
The @if statement operates much like a typical if conditional statement.
The @if statement evaluates compiled variables and has a slightly different syntax.
The @elif statement operates the same as the JavaScript else... if statement
Only one @else statement should be used to catch conditions that don't meet any of the previous conditionals.
Like the @elif statement, the @else statement is optional.
The @end statement is required at the end of all if conditionals.