Logic#

The Logic pages collect the blocks that control how a project runs, makes decisions, stores information, and stays organized. Start here when you need to repeat actions, wait for a trigger, compare values, or save information for later in the project.

  • Controls let you manage the flow of your program.

  • Events help you react to triggers like sensor changes or button presses.

  • Operators do things like math and comparisons.

  • Variables hold information you want to save and use.

  • My Blocks let you group chunks of code to keep your program organized.

  • Comments help you remember what each part of your code does.

All together, they help you code projects that make decisions, respond in real-time, and keep your code neat and easy to understand.