Operators
Operators in Betty provide powerful ways to perform calculations, compare values, and control execution flow.
-
Perform fundamental mathematical operations like addition, subtraction, multiplication, and division.
-
Combine boolean values and control decision-making with AND, OR, and NOT operations.
-
Compare numbers, strings, and other data types to determine equality, order, and differences.
-
Use the ternary operator to make concise, inline decisions based on conditions.
-
Assign values to variables and modify them efficiently with compound assignment operators.
-
Work with unique syntax features like ranges and list indexing for efficient data handling.