A custom stat (that I imported in working form from PT3) fails, I get a red error in both hud and a report. Here's a clip from log showing the error text:
2012/07/20 23:28:34.760 [00020]: [0000FC54][QueryExpression (Error)] Query: Cash Player/Replayer - 6 max - Cash-Cash - repl1 Exception: Expression: Parameters on the left and right side of an operation must be compatible (there are 8 of these messages in the log on a table with 4 players showing the stat, so 2 messages per player).
My stat's value expression is
if (var_live_players=3 or var_live_players=4,format('3-4 ',format_number(cnt_hands_34handed,0,false,false)),
(if (var_live_players=5 or var_live_players=6,format('5-6 ',format_number(cnt_hands_56handed,0,false,false)),
(if (var_live_players>6,format('7+ ',format_number(cnt_hands_710handed,0,false,false)),
format('Any ',format_number(cnt_hands,0,false,false))
)))))
and the columns are like
sum(if[cash_hand_player_statistics.id_hand > 0 and (cash_hand_summary.cnt_players = 3 or cash_hand_summary.cnt_players = 4) , 1, 0])
All of this validates in PT4 (and worked fine in PT3). Any ideas how to fix?
