true or false, and code inside a conditional block only executes when that evaluation returns true. You can compare values using all standard comparison operators:
If-Equals Shorthand
Because Standard does not use= to assign values to variables, you can omit = entirely when checking value equality inside a condition. This shorthand makes equality checks more concise.
This shorthand is for comparing values. When you use
==, Standard compares memory addresses rather than values — so two variables holding the same number can return false with == if they are stored at different addresses.If Conditions
A simpleif condition uses the syntax if: ARGS { ... }:
If-Else
To handle an alternative condition, chain anelse: clause with its own arguments and block:
Shorthand If-Else
When yourelse branch has no condition of its own, you can omit the else keyword and attach the fallback block directly with :{:
Boolean Operators
Build more complex conditions by combining boolean expressions withand, or, &, &&, |, or ||:
Negation
Prepend a boolean value or variable with! to negate it: