Hi all,
I have labels showing in custom quotes using if/then/else, like this:
What I want to do is something like this:
That doesn't work and I can't figure out any way to make it work. I know it's possible to set a color regardless of the if/then/else conditions (doing so when displaying a string value makes the text font have that color). I also know there are examples where the color changes when showing a value (like if the value returned by a formula is positive the number is green, if negative the number is red). But I can't find examples where the color coding is combined with specification of the string value. Does anyone know how to do it?
I have labels showing in custom quotes using if/then/else, like this:
Code:
Addlabel(yes, if VARIABLENAME > 0 then "Yes" else "No");
What I want to do is something like this:
Code:
Addlabel(yes, if VARIABLENAME > 0 then "Yes" and Color.GREEN else "No" and Color.RED);
That doesn't work and I can't figure out any way to make it work. I know it's possible to set a color regardless of the if/then/else conditions (doing so when displaying a string value makes the text font have that color). I also know there are examples where the color changes when showing a value (like if the value returned by a formula is positive the number is green, if negative the number is red). But I can't find examples where the color coding is combined with specification of the string value. Does anyone know how to do it?