Page 1 of 1

Number to a String lookup (val_p_raise_aggressor_pos)

PostPosted: Fri Jun 07, 2024 6:52 pm
by kimekii
I would like to display position name (CO,BTN) in the hands report instead of an number; just to make report slightly prettier.

hand column: p_raise_aggressor_pos
Code: Select all
cash_hand_player_statistics.val_p_raise_aggressor_pos


hand stat: PF Aggressor
Code: Select all
 p_raise_aggressor_pos

Re: Number to a String lookup (val_p_raise_aggressor_pos)

PostPosted: Sun Jun 09, 2024 5:24 am
by Flag_Hippo
Set the 'Format Type:' of your custom statistic to 'Expression' and you can use an expression in this format:

Code: Select all
if( this = 0, 'BTN', if( this = 1, 'CO', 'x'))

You will need to nest additional IFs within the expression to account for the remaining positions.

highfalutin