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
calvin_nrcalvin_nr 

What is wrong with this !IF statement?

<apex:image rendered="{!IF({!mt.moneyTransactions.ACH_Type__c}=='Direct Deposits',true,false)}" value="{!$Resource.DepositImg}" width="30" height="20"/>

 

What is wrong with this? Is my IF condition correct? I get a syntax error message.

 

Thanks,
Calvin

Best Answer chosen by Admin (Salesforce Developers) 
calvin_nrcalvin_nr

Ok figured it out. Never mind :)

 

<apex:image rendered="{!IF(mt.moneyTransactions.ACH_Type__c ='Direct Deposits',true,false)}" value="{!$Resource.DepositImg}" width="30" height="20"/>