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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Turing Reference - Logical Operators

Page history last edited by Steve Sweeney 10 years, 4 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.