Gallery

AND · OR · NOT

by Anonymous · 0 · 🍴 0

🔀 Sometimes one condition isn't enough! Learn how to combine two conditions, like "Height over 120 AND age over 8". 💡 In Switches & Bulbs, toggle switches A and B to see how electricity flows—&& is a series circuit so both must be closed to turn on, || is a parallel circuit so closing just one turns it on, and ! is an inverted switch that turns on when off. 🎫 In Entry Rules, create rules for theme park guests that require combining conditions to pass. 🚫 In Inversion, build an expression matching !(A && B) to discover how flipping turns && into ||! Built with code—remix it to create your own rules!

Ready to remix — hit the 🍴 Remix button below. You'll sign up first, then this app is copied into your workspace.

🔗 Open in a new tab

About this app

And Or Not is an interactive educational app designed to teach core boolean logic operators through hands-on practice. Users explore electrical circuit analogies for logic gates, build entrance qualification rules for park guests, and apply De Morgan's laws to negate logical expressions. It provides an intuitive, visual approach to understanding conditions and logical combinations in programming.

Use cases

  • Beginners learning foundational coding concepts and boolean logic
  • Teachers looking for visual logic gate and truth table demonstrations
  • Students practicing conditional statements and De Morgan's laws

Features

  • Interactive switch and bulb circuit simulation for AND, OR, and NOT operators
  • Amusement park guest gate with custom condition-building challenges
  • De Morgan's law expression-matching interactive puzzles
  • Auto-populating truth tables with real-time feedback
  • Toggleable sound effects and multi-step learning missions