Logic#
The Logic pages are about how your VEXcode project “thinks” and acts in different situations:
Control lets you manage the flow of your program.
Timer measures durations, triggers events after a set time, and resets for new timing operations.
Variables hold information you want to save and use.
Functions group commands into reusable chunks of code.
Events help you react to triggers like sensor changes or button presses.
Math uses built-in functions and the full
mathmodule for calculations.Random generates random numbers and selects random values.
Other pages help you format data, define colors, and use tools built into Python:
Operators let you compare values, combine expressions, and perform logical tests.
Comments let you describe what your code does without affecting how it runs.
Custom Colors allow you to define your own RGB or hex color values.
String Formatting explains how to format text, numbers, and output using f-strings.
Threads allow parts of your project to run in parallel.
All together, they help you code projects that make decisions, respond in real-time, and keep your code neat and easy to understand.