Row Color Expression

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Row Color Expression

Postby achudiak » Wed Nov 01, 2023 6:27 pm

Is is possible to create Row Color Expressions with multiple conditions?
For example I want to highlight hands were the starting hand were certain hole cards (or a range of hole cards) when I am in multiple positions.

So this works for finding K8o when I am in the CO
Code: Select all
if(position=1 AND id_holecard=36,rgb(255,225,225),rgb(255,255,255))


How do highlight K8o when I am the BTN (or any other position)?

Is there a way of either separating if statements... (the below do not work) e.g....
Code: Select all
if(position=1 AND id_holecard=36,rgb(255,225,225),rgb(255,255,255));
if(position=0 AND id_holecard=36,rgb(255,225,225),rgb(255,255,255))


or nesting multiple conditions in the code? - neither of these seem to work
Code: Select all
if(position=1 AND id_holecard=36 OR position=0 AND id_holecard=36,rgb(255,225,225),rgb(255,255,255))
if(position=1 AND id_holecard=36,if(position=0 AND id_holecard=36,rgb(255,225,225),rgb(255,255,255)))
achudiak
 
Posts: 3
Joined: Fri Oct 02, 2020 1:24 pm

Re: Row Color Expression

Postby Flag_Hippo » Thu Nov 02, 2023 6:44 am

You can nest the conditions like this:

Code: Select all
if(position = 1 AND id_holecard=36, rgb(255,225,225), if(position = 0 AND id_holecard=36, rgb(255,225,225), rgb(255,255,255)))
Flag_Hippo
Moderator
 
Posts: 15186
Joined: Tue Jan 31, 2012 7:50 am

Re: Row Color Expression

Postby achudiak » Fri Nov 03, 2023 2:16 pm

This is great, thank you for your help.
Will let you know if I have any further questions
achudiak
 
Posts: 3
Joined: Fri Oct 02, 2020 1:24 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 44 guests

cron
highfalutin