Feature #26665

Fluid: Implement String comparison

Added by Sebastian Kurfuerst over 10 years ago. Updated over 8 years ago.

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

100%

Estimated time:
(Total: 0.00 h)
Has patch:
No

Subtasks

Task #6757: support literal strings in boolean argumentsResolved2010-03-10

Actions

Related issues

Related to TYPO3.Fluid - Feature #33394: Logical expression parser for BooleanNodeNeeds FeedbackTobias Liebig2012-01-23

Actions
Has duplicate TYPO3.Fluid - Feature #26692: String comparison support for f:ifRejectedBastian Waidelich2011-05-07

Actions
Has duplicate TYPO3.Fluid - Bug #29004: if viewhelper does not evaluate conditions correctlyClosedBastian Waidelich2011-08-16

Actions
#1

Updated by Sebastian Kurfuerst over 10 years ago

  • Subject changed from Fluid: Improve ViewHelpers to Fluid: Implement String comparison
  • translation missing: en.field_position deleted (1)
  • translation missing: en.field_position set to 1
#2

Updated by Bastian Waidelich over 10 years ago

Some behaviors that I would expect from this feature:
given:

$this->view->assign('someString', 'foo');

satisfied conditions (true)

<f:if condition="{someString} == foo">
<f:if condition="foo == {someString}">
<f:if condition="{someString}  ==  foo">
<f:if condition="{someString} != bar"> (other comparators should behave like their PHP dependant)
{f:if (condition: '{someString} == foo')}

unsatisfied conditions (false)

<f:if condition="{someString} == bar">
<f:if condition="bar == {someString}">
<f:if condition="someString == foo"> (or should this throw an exception?)

parser exception

<f:if condition="{someString} == foo bar"> (not sure, whether strings containing spaces should be supported)
<f:if condition="{someString} == foo != bar"> (more than one comparator)
{f:if (condition: someString == foo)} (not sure, if it is easily possible to detect this case)

#4

Updated by Sebastian Kurfuerst over 10 years ago

  • Tracker changed from Story to Feature
  • Target version changed from 1.0 beta 1 to 1.0 beta 2
#5

Updated by Sebastian Kurfuerst over 10 years ago

  • Project changed from TYPO3 Flow Base Distribution to TYPO3.Fluid
  • Priority changed from Must have to Should have
#6

Updated by Robert Lemke about 10 years ago

  • Target version changed from 1.0 beta 2 to 1.0.0
#7

Updated by Robert Lemke about 10 years ago

  • Target version changed from 1.0.0 to 1.1
  • Has patch set to No
#8

Updated by Karsten Dambekalns over 9 years ago

  • Target version deleted (1.1)
#9

Updated by Alexander Berl over 8 years ago

Is there anything left to do or can this issue get closed?

#10

Updated by Stefan Neufeind over 8 years ago

Was fixed with 6757. Imho done.

#11

Updated by Adrian Föder over 8 years ago

  • Status changed from New to Resolved

Definitely resolved.

Also available in: Atom PDF