π° What we're MAKING today: My Opposite Potion
In Logic Boss you combined TWO true/false checks with AND and OR.
Today you get the third magic ingredient: NOT β the opposite operator! πͺ
What is NOT? It's a tiny symbol β ! β that you put in front of any check to flip its answer.
If the check says TRUE, ! makes it FALSE. If it says FALSE, ! makes it TRUE.
It's Opposite Day for computers! Real apps use it everywhere: "send the alarm when the door is NOT locked",
"show the button when the player is NOT logged in". One tiny ! β total flip!
π Last time you wrote if (key AND boss) to combine two checks. Today: !(moon === "full") β one drop of NOT turns a TRUE rule into a FALSE rule and back again. The AND/OR gates made decisions β NOT makes them think the OPPOSITE! π§ͺ