🤔 Logic Your “Decision Maker”

What it is: Blocks that allow you to make decisions.

What it does: Answers Yes/No questions to make decisions.

Example: “If the button is pressed → turn on the LED, if not → turn it off.”

👉 It’s the thinking brain that says “yes” or “no.”

 

đź§© Fun Guide to Logic Blocks (Clu-blocks Pro)

🧠 Important! Logic blocks help your robot make decisions, compare things, and choose what to do next. They’re like the robot’s brain — checking if something is true or false before acting.

#BlockWhat it doesDropdown optionsWhat the options mean
1=Compares two values=, ≠, <, ≤, >, ≥=: equal
≠: not equal
<: less than
≤: less than or equal
>: greater than
≥: greater than or equal
20 < x < 2Checks if x is between two values<, ≤, >, ≥You can build double comparisons like “between” or “outside”
3andCombines two conditionsand, or, NAND, NORand: both must be true
or: at least one is true
NAND: not both
NOR: neither is true
4notFlips a condition—If something is true, not makes it false — and vice versa
5trueA true/false valuetrue, falseUsed to test or trigger actions based on conditions
6nullRepresents “nothing” or “empty”—Used when a value doesn’t exist or hasn’t been set yet
7if true, if falseRuns code based on a condition—You choose what happens when something is true or false
8x to [0,1,2,3] is inChecks if a value is in a listto, is not into: is in the list
is not in: not in the list
9[0,1,2,3] Yes [0,1,2,3]Compares two listsYes, is notYes: lists are equal
is not: lists are different
10to boolean xConverts a value to true/false—Turns numbers, text, or other values into a logical result

đź§  Quick Tips for Students

  • Use comparison blocks to check values (like scores, sensor readings, or time).
  • Use true/false blocks to control decisions — like turning on a light only if it’s dark.
  • Use list checks to see if something belongs to a group (like a password or command).
  • Use logic combos (and, or, not) to build smarter conditions.
On this page