You need to sign in to do that
Don't have an account?
Matt Tindall
APEX IF statement
Hello,
I am using IF statements to change the colour of text determined on its value. I have it working to show either "RED" if the value is below 15 and Green thereafter.
<font size="6" color="{!IF((ShowNovemberSales<15),"RED","GREEN")}">{!ShowNovemberSales}</font>
I'd like to add in an extra colour and that is if the value is GREATER than 15 but LOWER than 26 to show orange.
Can anyone tell me how i write this as im having no luck!
Thanks,
Matt
Can't you just
?
(haven't tried)
All Answers
Can't you just
?
(haven't tried)
Why not create a getter for this ?
You already have ShowNovemberSales,
Add NovemberSalesColor or something...
I kept putting an "!" on the second "IF".
I've been staring at the screen for too long today.
Thanks!!!