You need to sign in to do that
Don't have an account?

The IF statement with rendered tag not amounting to true ever
Hi
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
Thanks
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
Thanks

I think your rendered should look like this:

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