| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions! Dokkio, a new product from the PBworks team, integrates and organizes your Drive, Dropbox, Box, Slack and Gmail files. Sign up for free.

View
 

Turing Reference - Logical Operators

Page history last edited by Steve Sweeney 6 years, 3 months ago

Logical operators, also known as boolean operators, allow multiple conditional statements to be combined into a more complex statement.  There are three (3) logical operators, but two of them are much more important, so we will focus on them first.

 

Operator  Explanation Syntax 
and 
  • if ALL conditions are TRUE, then it is TRUE
  • if ANY conditions are FALSE, then it is FALSE 
condition1 and condition2
or 
  • if ANY conditions are TRUE, then it is TRUE
  • if ALL conditions are FALSE, then it is FALSE 
condition1 or condition2

 

 

 

 

Comments (0)

You don't have permission to comment on this page.