Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

Ternary operators missing from the supported operators in expression language #16

Open
ghost opened this issue Aug 28, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 28, 2019

https://oroinc.com/b2b-ecommerce/doc/current/admin-guide/shipping/shipping-rules/expression-lang#expression-syntax
Ternary operators that are supported are missing from the list, they can be very useful e.g. to construct counting function like this
lineItems.sum((lineItem.product_unit_code = "5" ? 1 : 0 )

https://symfony.com/doc/current/components/expression_language/syntax.html#ternary-operators

@ghost ghost changed the title Ternary operators missing form the supported operators in expression language Ternary operators missing from the supported operators in expression language Aug 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants