user828591
user828591

Reputation: 1262

TYPO3: Compare two timestamps in Fluid-if

I'm not sure about how to write it correctly, but this is the inline notation I used, it seems to be correct from checking, but it always says it's greater.

{f:if(condition: '{timestamp} > {f:format.date(date:{timestampsinloop}, format:"U")}', then: 'Too late')}

Upvotes: 0

Views: 1932

Answers (1)

user828591
user828591

Reputation: 1262

I went back to half inline and half block notation:

<f:if condition="{timestamp} > {f:format.date(date: '{timestampsinloop}', format: 'U')}">Too late</f:if>

Upvotes: 2

Related Questions