- Code: Select all
if ( (this) > 99.5, '99', (format( '{1}{2}', if ( (this) < 9.5, ' ', ''), format_number( (this), 0, false, false) ) )), if( cnt_p_open_opp = 0, ' - ', format_number((this), 0, false, false) )
(RFI example)
If I take one part of it(either of them) - it is working properly. If I try to combined them - it is valid to create but cause an expression error on the HUD(tried it on few different stats). What is the reason for that? And how to fix it?
2. The other 1/3 part is rounding to the nearest 5:
- Code: Select all
if( ((this) > 0.5 AND (this) =< 2.5), '1', if((this) =< 7.5, '5', if((this) =< 12.5, '10', if((this) =< 17.5, 15, if((this) =< 22.5, 20, if((this) =< 27.5, 25, if((this) =< 32.5, 30, if((this) =< 37.5, 35, if((this) =< 42.5, 40, if((this) =< 47.5, 45, if((this) =< 52.5, 50, if((this) =< 57.5, 55, if((this) =< 62.5, 60, if((this) =< 67.5, 65, if((this) =< 72.5, 70, if((this) =< 77.5, 75, if((this) =< 82.5, 80, if((this) =< 87.5, 85, if((this) =< 92.5, 90, if((this) =< 97.5, 95, 99))))))))))))))))))) )
It is valid expression to create but cause an invalid error on the HUD("Invalid operation specified in expression"). Again, What is the reason for that? And how to fix it?
3. I'm trying to create a stat color coded by another stat, and if there are no opportunities for the colored based stat - I want it to be in natural color. With a single condition it is working just fine:
http://oi42.tinypic.com/o69sw3.jpg
But with double condition in one line(using "AND"), it shows it in red(=0) even if there are no opportunities. Here is an example:
http://oi41.tinypic.com/r2rmah.jpg
What is the reason for that and how can I fix it?
Thanks.
