Been trying to figure this out the whole day. I am new to VF and would like some assistance in figuring this out.
I have a number value on a visualforce page that I would like to style with RAG colors dependant on the value. Less than 50=red Between 50 and 74=amber More than 74=green
So far I have been able to figure out that this can be done through the font styling. However, I have only been able to do the red and green. Not quite sure how to add in that third condition that will make the text turn amber through the visualforce styling. Below is what I have for the style attribute:
color:{!IF(cObject__c.FieldName__c < 50, 'red', 'green')}
Your assistance is greatly appreciated. Thanks!
- Miguel
CASE
function.IF(cond1, val1, IF(cond2, val2, val3))