function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

The IF statement with rendered tag not amounting to true ever

I have below code
<apex:outputLabel value="{!$ObjectType.ABC.fields.field.label}"
                                      rendered="{IF(!cloned.field == 'some value'),true,false)}">
So I want block section to disappear if the If condition is false and appear when IF condition is true. cloned.field is being read form the controller and it does populate the value in other areas of the VF page but looks like in the IF condition the values is not coming and the IF condition always evaluates to false and block section is never displayed. I am expecting the VF page to read the value from the controller. Any hint of what I am missing here would be appreciated

I think your rendered should look like this:
rendered="{!IF(cloned.field='some value',true,false)}"

Thanks Scott for pointing that out. Really Appreciate it!!!