You need to sign in to do that
Don't have an account?
etechcareers
IF THEN STATEMENT HELP IN VF Please??
What is wrong with my statement:
{!IF(metricname=='Overall',saname==null,'<apex:outputText value={!saname}/>' )}
Thanks
eTechCareers
Assuming that what you were trying to get was an apex output text control that is only rendered if when metricname (probably a controller property) is set to overall, then you can accomplish this using the rendered property.
This results in a much nicer, and more VisualForce-ish code, as follows:
All Answers
Hi,
"saname==null" is wrong. What are you trying th achieve? I supose "saname" is a variable in your controller.
Please clarify for me to help you,
Bruno
just replace saname==null with ""
Assuming that what you were trying to get was an apex output text control that is only rendered if when metricname (probably a controller property) is set to overall, then you can accomplish this using the rendered property.
This results in a much nicer, and more VisualForce-ish code, as follows: