StateTick Docs Home →
Conditions

Operators & Grouping

Terms are joined by operators, negated with NOT, and grouped with parentheses. The editor offers only the operators that make sense for the term before them.

The full StateTick Studio window with the Conditions page and a condition whose IF expression, highlighted, shows two terms joined by an AND dropdown operator
Operators are dropdowns between term boxes in the IF expression (here, AND).

The operators

GroupOperators
LogicalAND   OR
Comparison<   >   <=   >=
Equality=   !=

The operator between two terms is a dropdown. It is type-filtered by the term before it:

Preceding term typeValid operators
BoolAND, OR, =, !=
Int / Double / Time=, !=, <, >, <=, >=
String=, !=

So a numeric term must be followed by a comparison against a value; two Bool terms join with AND/OR. A comparison such as Global.Temperature > 80 is itself a Bool sub-expression, so the next operator can be AND/OR again.

NOT

NOT is not an operator between terms — it is a modifier on a single Bool term (or a group). Only Bool-returning terms can be negated:

Motor.IMotor.Running AND NOT Motor.IMotor.Overload

Parentheses

Select two or more terms and Wrap with ( ) to group them; groups can nest, and a group can carry its own NOT:

IF (Motor.IMotor.Running AND NOT Motor.IMotor.Overload) AND Global.Temperature < 80

Rules: a group must wrap at least two terms and form a complete boolean sub-expression (it can't start or end on an operator). Comparison, not XOR, is the only non-logical joiner — there is no XOR operator in the editor.