Expressions
Expressions in Kexra combine values and operators to compute results.
Why this exists
Expressions enable dynamic computation and data manipulation.
How it works
Expressions evaluate to values. They can be simple literals or complex combinations.
Examples
set result = (2 + 3) * 4 # 20
check result > 10 {
say "Large number"
}
Common mistakes
- Confusing expressions with statements
- Operator precedence errors