Page 1 of 1

Row Color Expression

PostPosted: Wed Nov 01, 2023 6:27 pm
by achudiak
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)))

Re: Row Color Expression

PostPosted: Thu Nov 02, 2023 6:44 am
by Flag_Hippo
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)))

Re: Row Color Expression

PostPosted: Fri Nov 03, 2023 2:16 pm
by achudiak
This is great, thank you for your help.
Will let you know if I have any further questions