Bug #3298
"if" expression language
Status: | Resolved | Start date: | 2009-05-14 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Sebastian Kurfuerst | % Done: | 100% |
|
Category: | Core | |||
Target version: | 1.0.0 alpha 2 | |||
Has patch: | Affected Flow version: |
Description
"if" expression language - we need some expression language for IF
Associated revisions
- [+FEAT] Fluid (Core): Implemented a simple Expression Language which is used for boolean ViewHelper arguments. The language supports statements of the form "XX Comparator YY", where Comparator is one of ==, %, >, >=, <, <= and XX/YY are an Object Accessor, an array, a ViewHelper or a number (NO string!). This expression language can be used always inside all boolean arguments of ViewHelpers. (fixes #3298)
- [+MISC] Fluid (Core): Added some comments to ObjectAccessorPostProcessorInterface
- [-FEAT] Fluid (ViewHelpers): Removed <f:exp.equals> ViewHelper. Please use the new expression language now. THIS WILL BREAK YOUR TEMPLATE.
- Fluid (Documentation): Added a section about boolean expressions
History
#1 Updated by Susanne Moog about 6 years ago
great would be something like <f:if condition="{params.myVar}" isGreaterThan="15"> (and of course additionally to isGreaterThan some other operators ;-))
#2 Updated by Sebastian Kurfuerst about 6 years ago
- Assigned To set to Sebastian Kurfuerst
- Target version set to 1.0.0 alpha 2
#3 Updated by Sebastian Kurfuerst about 6 years ago
- Category set to Core
- Status changed from New to Accepted
- Branch set to v4 + v5
#4 Updated by Sebastian Kurfuerst about 6 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r2575.