You need to sign in to do that
Don't have an account?
David Holland
If then else statement returning Syntax Error.
Hi everyone.
I am creating a VF Page and displaying number merge fields.
<apex:pageBlockSectionItem >
<apex:outputText styleClass="dataInput" value="{0, number, ###,###,###}">
<apex:param value="{!Performance_Projection__c.L_Cap_Inv_Am_A__c}"/>
</apex:outputText>
</apex:pageBlockSectionItem>
I am trying to do:
{!Performance_Projection__c.L_Cap_Inv_Am_P__c==0?10:5}
But am receiving 'Error: Syntax error'
I am sure it is a simple syntax error and I just can't see how I am going wrong
You don't have the ternary operator in merge (formula) syntax, you can only use that in Apex code.
In the page you can just use the IF function:
:
All Answers
You don't have the ternary operator in merge (formula) syntax, you can only use that in Apex code.
In the page you can just use the IF function:
:
Hi,
Yes. Bob is correct ..as always :)
Thanks,
Bharathi
Salesforce For All