Task #6757

Feature #26665: Fluid: Implement String comparison

support literal strings in boolean arguments

Added by Peter Niederlag over 11 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Core
Target version:
-
Start date:
2010-03-10
Due date:
% Done:

100%

Estimated time:
Has patch:
No

Description

the 'if' viewhelper should support comparison on strings.

This can easily be fixed by adding [a-zA-Z] on $booleanExpressionTextNodeCheckerRegularExpression in Core/Parser/SyntaxTree/ViewHelperNode.php, see attached patch. if works like a charm with this patch.

However I fear, something else probably breaks badly?


Files

fluid-if-viewhelper.diff (617 Bytes) fluid-if-viewhelper.diff Peter Niederlag, 2010-03-10 10:31

Related issues

Related to TYPO3.Fluid - Feature #5485: Missing operators "===", "!==" and "!" in fluid comparism mechanismRejected2009-11-24

Actions
Has duplicate TYPO3.Fluid - Bug #7039: if ViewHelper: conditions always trueRejected2010-03-28

Actions

Also available in: Atom PDF