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

How to render table in visualforce page by comparing two fields of an object?


I am creating a visualforce page and there is rable whihc needs to be rendered according to some condition I am writing the code as:


  <apex:outputPanel rendered="{!IF(ISEQUAL(Bil__c.Agent__c, Bill_c.Dealer__c},'true','false')}">


but its giving an error.


Try this


<apex:outputPanel rendered="{!IF(Bil__c.Agent__c = Bill_c.Dealer__c,true,false)}">


You're closing your ISEQUAL function with a curly bracket instead of a parentheses.


actually its a typin mistake its gettin close by parenthesis only...