Trait Builder evaluates expressions according to the order-of-operations listed below, from high to low precedence. Trait elements defined by high-precedence operators are evaluated first, before other precedence operators. This section ranks each operator according to precedence, from high to low.
Operator precedence | Symbol | Comments |
---|---|---|
Parenthesis | ( ) | Expressions in parenthesis are always evaluated first and follow precedence order. |
Comparison operators | < > <= >= | Less than, greater than, less than/equal to, greater than/equal to are evaluated next. |
Equality operators | == != | Equal to, not equal to are evaluated after the previous operators. |
Boolean AND | AND | n/a |
Boolean OR | OR | n/a |