You need to sign in to do that
Don't have an account?
![Shelly Nyein Shelly Nyein](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
IF else condition in visualforce page.
Hi, I'm using the below code in visualforce page, it is working fine when I have "Opportunity.Commerical_Value__c" value, but if Opportunity.Commerical_Value__c doesn't have any value, it always return null. What I want is to have something like this "Opportunity.amount - 0 when Commercial_Value__c is empty.
Anyone could help me on this? THank you in advance.
<apex:outputText value="{0, number, Currency}"> <apex:param value="{!Opportunity.amount - Opportunity.Commerical_Value__c}" /> </apex:outputText>
Anyone could help me on this? THank you in advance.
<apex:outputText value="{0, number, Currency}"> <apex:param value="{!Opportunity.amount - Opportunity.Commerical_Value__c}" /> </apex:outputText>
Thanks let us know if it helps you
You can use if else statement in visualforce:
Syntax: {!IF(condition,'YES','NO')} Tell us if it helps.
Mayank Sareen
AppPerfect Corp.
salesforce@appperfect.com
408-252-4100
http://www.appperfect.com/services/salesforce/
Salesforce Development & Operations Experts