Expressions
Expressions in CFS are JavaScript‑like, with a smaller surface area.
Operators
count += 1;
total = price * qty;
done = count > 3 && ready;
Supported operators:
- Arithmetic:
+ - * / % - Comparison:
< <= > >= - Equality:
=== !==(preferred),== !=(still supported) - Logic:
&& || - Nullish:
??
Ternary
label = count > 1 ? "Items" : "Item";
Nullish coalescing
title = name ?? "Untitled";
Notes
- Use
===for strict equality to match JS expectations. - Expressions can be used in bindings, assignments, and function calls.