All Release Notes
Simplified cart predicate language
2 March 2018
Enhancement
Carts
The cart predicate language has been simplified.
- [API] A boolean value is now a valid predicate. For example if a cart discount should match all carts, the predicate
true
is now sufficient. Previously, one had to write1 = 1
ortrue = true
. - [API] A boolean function is now a valid predicate. For example
lineItemExists(...)
is now sufficient. Previously, one had to writelineItemExists(...) = true
.