Issue Bug Closed

#81532Non-zero value evaluates to FALSE in condition of <f:if> viewhelper

Michael Stopp 06/09/17, 15:29 updated 06/13/17, 12:30

Description

Testing for a non-zero value in Fluid 8.7.0 doesn’t evaluate as TRUE as it used to in 6.2.0:

<f:if condition="-1">
TEST
</f:if>

This doesn’t print TEST. It seems that only positive non-zero values will test TRUE. This is not consistent with earlier implementations and can thus break existing templates.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.