Login    Sites MenuBlueStep

BlueStep Platform Support

RelateScript
Outline full outline 
Overview 
Data Types 
Operators 
Statements 
The if Statement 
The while Loop Statement 
The do/while Loop Statement 
The for Loop Statement 
The for/in Loop Statement 
The continue Statement 
The break Statement 
The Array Creation Statement 
Functions 
Working with Relate Data 
How Formulas Work 
Related Topics 

Syntax:
if ( boolean-expression ) statement

if ( boolean-expression ) statement else statement

In the above syntax description, the single statement may be replaced with multiple statements by enclosing those statements in a statement block using braces:

{ statement1; statement2; statement3; }

Description:
The if statement conditionally executes one or more statements. If the boolean-expression evaluates to true, then the statement following the closing parenthesis is executed. If the boolean-expression evaluates to false, then the statement following the else is executed (if present). If the boolean-expression evaluates to null, then neither statement is executed.