.. pybricks-requirements::

Other blocks
=====================================================

Most blocks correspond directly to one of the documented Python commands. This
page lists the remaining blocks.

This page will be expanded with more details in the next release.

Math
------------------------

See also :mod:`umath` for other math operations.

.. blockimg:: pybricks_blockMathFormula

.. blockimg:: pybricks_blockMathOp_modulo

.. blockimg:: pybricks_blockMathArithmetic_add

.. blockimg:: pybricks_blockMathArithmetic_minus

.. blockimg:: pybricks_blockMathArithmetic_multiply

.. blockimg:: pybricks_blockMathArithmetic_divide

.. blockimg:: pybricks_blockMathArithmetic_power

Logic
--------------------------

.. blockimg:: pybricks_blockLogicCompareDouble

.. blockimg:: pybricks_blockLogicCompare_eq

.. blockimg:: pybricks_blockLogicCompare_gte

.. blockimg:: pybricks_blockLogicCompare_gt

.. blockimg:: pybricks_blockLogicCompare_lte

.. blockimg:: pybricks_blockLogicCompare_lt

.. blockimg:: pybricks_blockLogicCompare_neq

.. blockimg:: pybricks_blockLogicIsNone_is_none

.. blockimg:: pybricks_blockLogicIsNone_is_not_none

.. blockimg:: pybricks_blockLogicIsNone_not

.. blockimg:: pybricks_blockLogicOperation_and

.. blockimg:: pybricks_blockLogicOperation_or

.. blockimg:: pybricks_blockLogicTernary

.. blockimg:: pybricks_blockLogicTernaryDouble

.. blockimg:: pybricks_blockIsIn

Flow
--------------------------

.. blockimg:: pybricks_blockFlowBreakContinue_break

.. blockimg:: pybricks_blockFlowBreakContinue_continue

.. blockimg:: pybricks_blockFlowForEach_loop_for

.. blockimg:: pybricks_blockFlowForEach_loop_for_list

.. blockimg:: pybricks_blockFlowForEach_loop_for_range

.. blockimg:: pybricks_blockFlowRepeat

.. blockimg:: pybricks_blockFlowWhile_until

.. blockimg:: pybricks_blockFlowWhile_while


.. blockimg:: pybricks_blockIfElse_if_else

.. blockimg:: pybricks_blockIfElse_if_else_else

.. blockimg:: pybricks_blockIfElse_if_only


Device and system setup
--------------------------

.. blockimg:: pybricks_blockGlobalSetup

Waiting
------------------------

.. blockimg:: pybricks_blockWaitTime

.. blockimg:: pybricks_blockWaitUntil

.. blockimg:: pybricks_blockWaitForever



Variables
--------------------------

.. blockimg:: pybricks_variables_setup_any

.. blockimg:: pybricks_blockVariableGetValue

.. blockimg:: pybricks_blockVariableSetValue

Multitasking
--------------------------

.. blockimg:: pybricks_blockGlobalStart

.. blockimg:: pybricks_blockMultiTask

Your own tasks
--------------------------

.. blockimg:: pybricks_variables_setup_function_basic

.. blockimg:: pybricks_variables_setup_function_with_args

.. blockimg:: pybricks_blockTaskReturn

External tasks
--------------------------

.. blockimg:: pybricks_variables_setup_imported_function

.. blockimg:: pybricks_blockImportTaskCallStatement

.. blockimg:: pybricks_blockImportTaskCallValue

Comments
--------------------------

.. blockimg:: pybricks_blockComment

Stopping programs
--------------------------

.. blockimg:: pybricks_blockProgramStop
