Page 1 of 1

Custom stat - Can this be done?

PostPosted: Fri Apr 07, 2017 12:06 pm
by jalba
I have a custom stat that displays the next big blind level; the stat works fine by itself but I'm trying to display it as 80/40 (as opposed to just 80), or whatever the next blinds are.
Image
The value expression is just the custom stat live_amt_bb_next.
The format type or summary type I'm trying to use
Code: Select all
format('{1}/{2}', format_number(this,0,false, false),format_number(this/2,0,false, false))

Any ideas why is not working or can this be done at all? Thanks.

Re: Custom stat - Can this be done?

PostPosted: Sat Apr 08, 2017 2:44 am
by WhiteRider
I'm not sure why, but it's the division sign that is causing the problem so you can multiply by 0.5 instead.

format('{1}/{2}', format_number(this,0,false, false), format_number(this*0.5,0,false, false))

Re: Custom stat - Can this be done?

PostPosted: Sat Apr 08, 2017 9:17 am
by jalba
Nice, is not giving me any errors now, however it shows for instance '40/{2}' on the HUD, the placeholder is shown instead of the value, any ideas?

Re: Custom stat - Can this be done?

PostPosted: Sat Apr 08, 2017 10:16 am
by WhiteRider
It's working for me, so make sure you have the format command correct. I suspect you may have the second quote (') or a comma or something in the wrong place.

Re: Custom stat - Can this be done?

PostPosted: Sun Apr 09, 2017 10:00 pm
by jalba
EDIT. It works now. I had table averages selected.

highfalutin