kraada wrote:Actually I think you want:
if( this <= 2.5, '0', if( this =< 7.5), '5', if( (this) =< 12.5), '10', if( (this) =< 17.5), '15', .... if (this <= 97.5, '95', '100')) ... )
Otherwise you'll hit that first else and you'll just get to see the value of the stat. You can format the '0', '5', etc using format number if you want as format_number( 5, 0, false, false) if you prefer.
OK so my full format expression, including other parts I have will look like this:
- 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) ), if( ((this) >= 2.5 AND (this) =< 7.5)), '5', if( (this) =< 12.5), '10', if( (this) =< 17.5), '15', .... if ((this) <= 97.5, '95') )
(in this way, the round to the nearest 5 exclude the numbers 1,2,98,99 - everything else, will be rounded to the nearest 5)
Will that work? Also, that's a lot of coding. Will having few of these on my HUD have the potential of causing some problems/slow downs/etc?
Thanks.