Skip to main content
Standard uses boolean logic to control the flow of your programs. Every condition you write evaluates to either 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 simple if condition uses the syntax if: ARGS { ... }:

If-Else

To handle an alternative condition, chain an else: clause with its own arguments and block:

Shorthand If-Else

When your else 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 with and, or, &, &&, |, or ||:

Negation

Prepend a boolean value or variable with ! to negate it: