[TYPO3-mvc] FLUID: bug with comparator ">" in if-conditions?

Franz Koch typo3.RemoveForMessage at elements-net.de
Wed Jan 6 18:53:21 CET 2010


Hi,

I was wondering if I just stumbled over a bug in fluids if-conditions or 
if I'm probably doing something wrong. Following template:

<f:if condition="{items} > 10">
	<f:then>Hurray, more then 10 items</f:then>
</f:if>

I know for sure that I only have 8 objects inside items (type 
Tx_Extbase_Persistence_ObjectStorage), but the "then" part is always 
displayed. Also if I compare it to 100 or so.
OTOH if I try condition="{items} < 5" the condition is matched 
correctly. So "lowerThan" is working but "greaterThan" isn't.

Could somebody please test it in his templates?

-- 
kind regards,
Franz Koch

---------------------------------------------------
PayPal-Account: 'paypal _at_ elements-net _dot_ de'
---------------------------------------------------


More information about the TYPO3-project-typo3v4mvc mailing list