You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Current »
Logical operators are used to construct comparison statements.
if(1 == 1 && 2 == 2) { return true; }
if(animal == "Cat" || animal == "Dog") { return "Pet"; }
if(!direction == "Up") { return "Down" }
Contents
For more information about using arithmetic operators see this page.