You need to sign in to do that
Don't have an account?
Karina Chang
IF Statement in Visualforce page
Hi,
I am trying to find out if it is possible to display an integer on a visualforce page.
For example, if my Opportunity field (Vertical__c) is "ABC", I want to display 3. If it isn't, it should display 0.
Is this possible? Do I need a Controller?
I am trying to find out if it is possible to display an integer on a visualforce page.
For example, if my Opportunity field (Vertical__c) is "ABC", I want to display 3. If it isn't, it should display 0.
Is this possible? Do I need a Controller?
If that's the case - then I think it's...
<apex:outputText value="{!if(vertical__c=='ABC',"3","0")}" />
Wouldn't that do it?
(I tried this yesterday, but there was an error in my syntax) =)