Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Logical Operator

From Groundhog Learning

Symbols used to connect or modify true or false values to create a new result.

Details

Logical operators allow programs to combine multiple conditions into a compound condition:

  • AND – true if both conditions are true.
  • OR – true if at least one condition is true.
  • NOT – reverses a boolean value (true becomes false, and vice versa).

🤖 Pseudocode

true AND false   # false
true OR false    # true
NOT true         # false

Related Concepts

Related Actions