Contents

Boolean Comparisons Switch

Script Conditions

Test if a value is true or false. If it is true, then run a block of code. Opionally, run a different block of code if it is false.


if(){
}

if(){
}else{
}

if(){
}else if(){
else{
}

Example:


if(true){
var OK=true:
}

var A=3,B=2;
if(A>B){
var GreaterThan=true;
}

var C="Hello"
var Success;
if(C=="World"){
Success
=true;
}else{
Success
=false;
}

Boolean Comparisons Switch