Skip to main content

Boolean Logic

Boolean logic deals with true and false values. These are the fundamental building blocks for making decisions in your macros.

Boolean Values

The simplest logic blocks represent the values true and false.

  • True: Represents a condition that is met or correct.
  • False: Represents a condition that is not met or incorrect.

Null

The null block represents a lack of value. It is rarely used in simple macros but can be useful for advanced logic or initializing variables to "nothing".

Usage

You often use these blocks to:

  • Set flags or variables (e.g., set is_running to true).
  • Pass as parameters to functions that expect a yes/no answer.
  • Create infinite loops (e.g., repeat while true).