Operators

WCL's operator set: arithmetic, comparison, logic, none-coalescing, and member access. Precedence runs unary tightest, then * / %, then + -, then comparison, then &&, then ||, then ?? loosest.

OperatorMeaningExample
+ - * / %Add, subtract, multiply, divide, remainder1 + 2 * 3
^Exponentiation2 ^ 10
== !=Equality and inequality1u32 == 1i64
< <= > >=Ordering comparisonsage >= 18
&& || !Logical and, or, nota && !b
??None-coalescing — left value unless it is nonebox.width ?? 480.0
.Member access — read a field by nameservice.metadata.region
[]Index access into a list or compositeconfig.services[0]