Expressions types can be used in combination to return a desired value after undergoing an operation. Supported arithemtic operators: +
, -
, *
, /
, %
.
Birds supports basic arithmetic operators to perform calculations on numeric values.
Comparison expressions return a boolean type indicating the relationship between two values.
Comparison operators: <
, >
, <=
, >=
.
Equality operators: ==
, !=
.
Given an input condition to a ternary expression, the expression will return one of two options based on the condition.
Check out the playground!