Feature #5485

Missing operators "===", "!==" and "!" in fluid comparism mechanism

Added by Steffen Ritter almost 12 years ago. Updated over 10 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Core
Target version:
-
Start date:
2009-11-24
Due date:
% Done:

0%

Estimated time:
Has patch:

Description

implement them :)

Attached patch adds the operators and furthermore adds a unit test to for all operators in different datatypes...


Files

addOperators.diff (8.58 KB) addOperators.diff Steffen Ritter, 2009-11-24 12:48

Related issues

Related to TYPO3.Fluid - Task #6757: support literal strings in boolean argumentsResolved2010-03-10

Actions
#1

Updated by Jochen Rau almost 12 years ago

  • Status changed from New to Accepted
  • Assignee set to Sebastian Kurfuerst

This issue should be moved to the Package Fluid.

#2

Updated by Sebastian Kurfuerst over 11 years ago

  • Status changed from Accepted to New
  • Assignee deleted (Sebastian Kurfuerst)
#3

Updated by Sebastian Kurfuerst over 11 years ago

  • Project changed from 534 to TYPO3.Fluid
#4

Updated by Sebastian Kurfuerst over 11 years ago

  • Status changed from New to Accepted

thanks for the unit tests, we should definitely include this.

However, I am not yet sure what the single "!" is supposed to do, as it is not a binary operator.

Greets,
Sebastian

#5

Updated by Bastian Waidelich over 11 years ago

Sebastian Kurfuerst wrote:

Hi,

However, I am not yet sure what the single "!" is supposed to do

Probably the same as it does in PHP, negating the condition:

<f:if condition="!{true}">...

..just guessing.

#6

Updated by Bastian Waidelich over 11 years ago

  • Category set to Core
  • Assignee set to Bastian Waidelich
  • Branch set to v4 + v5
#7

Updated by Steffen Ritter about 11 years ago

yes I wanted to negate the outcome of the expression afterwards

#8

Updated by Bastian Waidelich almost 11 years ago

  • Assignee deleted (Bastian Waidelich)
#9

Updated by Sebastian Kurfuerst over 10 years ago

  • Status changed from Accepted to Rejected
  • !== and === are now automatically used for objects.
  • Only negation is possible by doing <f:if><f:else>...

Also available in: Atom PDF