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
newbiewvfdevnewbiewvfdev 

In line IF Statement problem

Hi there I have the following code.

 

<apex:column value="{!IF(ISNULL(member.Contact), 'Lead', 'Contact')}" headerValue="Type" />

 

 

What is wrong with the above code? It's throwing a systax error. Missing ')'. Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
stephanstephan

I did a little more testing on this. Here's a workaround for the time being:

 

 

<apex:column headerValue="Type"> {!IF(ISNULL(member.Contact), 'Lead', 'Contact')} </apex:column>

 


 

All Answers

stephanstephan

I ran into a similar issue when researching your earlier post. It looks to be a bug, which I've filed.

 

...stephan

stephanstephan

I did a little more testing on this. Here's a workaround for the time being:

 

 

<apex:column headerValue="Type"> {!IF(ISNULL(member.Contact), 'Lead', 'Contact')} </apex:column>

 


 

This was selected as the best answer
newbiewvfdevnewbiewvfdev
Thanks for the workaround.