Skip to content

Operators

Operators in Betty provide powerful ways to perform calculations, compare values, and control execution flow.

  • Arithmetic


    Perform fundamental mathematical operations like addition, subtraction, multiplication, and division.

  • Logical


    Combine boolean values and control decision-making with AND, OR, and NOT operations.

  • Comparative


    Compare numbers, strings, and other data types to determine equality, order, and differences.

  • Conditional


    Use the ternary operator to make concise, inline decisions based on conditions.

  • Assignment


    Assign values to variables and modify them efficiently with compound assignment operators.

  • Special


    Work with unique syntax features like ranges and list indexing for efficient data handling.