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: Difference between revisions

From Groundhog Learning
Updated via bot
 
(No difference)

Latest revision as of 16:00, 21 October 2025

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