Discuss how to create custom stats, reports and HUD profiles and share your creations.
Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators
by kimekii » Fri Jun 07, 2024 6:52 pm
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
-
kimekii
-
- Posts: 2
- Joined: Wed Apr 19, 2023 5:27 am
by Flag_Hippo » Sun Jun 09, 2024 5:24 am
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.
-
Flag_Hippo
- Moderator
-
- Posts: 15135
- Joined: Tue Jan 31, 2012 7:50 am
Return to Custom Stats, Reports and HUD Profiles
Users browsing this forum: No registered users and 6 guests