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
Jagriti DubeyJagriti Dubey 

How to add 2 condition in if condition in vf page.That if one field has value than show its value and if its null than show -- in place of it.

 {!IF(acc['Fax'] != null,'--'')}

it is keep throwing error of unvalid condition if condition
Deepali KulshresthaDeepali Kulshrestha
Hi Jagriti,

You have to just put another condition in the query before '--' and your query will work fine, like below query.

{!IF(acc['Fax'] != null,acc['Fax'],'--')}

I suggest to visit this link, it will help you regarding multiple conditions for rendered attribute

https://developer.salesforce.com/forums/?id=906F000000097sIIAQ

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com