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.
Control - Manage the flow of a project with loops and conditions - pause for a time or until a condition is met, repeat blocks, run different blocks based on conditions, exit loops early, and end the project.
Timer - Measure how long actions take with the Brain’s timer, reset it for new timing operations, and start a stack of blocks after a set amount of time.
Events - Start different stacks of blocks at different times - when the project begins or when an event is broadcast from elsewhere in the project, with or without waiting for that event to finish.
Operators - Perform math operations and functions, compare values, combine or invert conditions, check ranges, generate random numbers, and round results.
Variables - Store numbers, Booleans, lists, and 2D lists so a project can count, track progress, and make decisions while it runs.
My Blocks - Group blocks into reusable custom blocks, with optional parameters to pass in values, to organize a project and avoid repeated blocks.
Comments - Add notes inside a project to explain logic and document functionality without affecting how it runs.
All together, they help you code projects that make decisions, respond in real time, and keep your code neat and easy to understand.