Skip to end of banner
Go to start of banner

Logical Operators

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

We've encountered an issue exporting this macro. Please try exporting this page again later.

Logical operators are used to construct comparison statements.

Example 1 - And

if(1 == 1 && 2 == 2) {
    return true;
}

Example 2 - Or

if(animal == "Cat" || animal == "Dog") {
  return "Pet";
}

Example 3 - Not

if(!direction == "Up") {
  return "Down"
}

Contents

For more information about using arithmetic operators see this page.

  • No labels