Feature #26692
String comparison support for f:if
| Status: | Rejected | Start date: | 2011-05-07 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assigned To: | Bastian Waidelich | % Done: | 0% |
|
| Category: | ViewHelpers | |||
| Target version: | - | |||
| Has patch: | No |
Description
I think it's really necessary that <f:if> fully supports simple string comparisons like this:
<f:if condition="{object.type} == 'cat'">
<p>I am a cat.</p>
</f:if>
Today every string comparison has to be workarounded by setting additional boolean view-variables at the controller.
<f:if condition="{isCat}">
<p>I am a cat.</p>
</f:if>
Related issues
History
#1 Updated by Bastian Waidelich about 4 years ago
- Status changed from New to Rejected
- Assigned To set to Bastian Waidelich
Thanks for reporting, but this is a duplicate of #26665 ;)