Text based on stats

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Text based on stats

Postby Blackbay » Sun Jun 13, 2010 5:05 pm

Hi!

I´m trying to make the the hud display a text instead off number stats.

Like this, if

Aggression Factor - Total is less than 0.75
Pre-flop Raise % is less than or equal to 5.00
When Folds - Pre-flop % is less than 55.00
Went To Showdown % is less than 33.33

I would like the hud to display the text "Fish"

I did try different types of formulas but non seems to work, here is what I tried to write.

if ((cnt_f_bet + cnt_f_raise + cnt_t_bet + cnt_t_raise + cnt_r_bet + cnt_r_raise) / (cnt_f_call + cnt_t_call + cnt_r_call) < 0.75 and ((cnt_pfr / cnt_hands) * 100) <= 5.00 and (100 * cnt_p_fold / cnt_hands) < 55.00 and ((cnt_wtsd / cnt_f_saw) * 100) < 33.33, 'Fish')


But this dose not work, I keep getting errors.

Anyone have any suggestions?


Kim
Blackbay
 
Posts: 4
Joined: Sun May 02, 2010 3:48 pm

Re: Text based on stats

Postby kraada » Mon Jun 14, 2010 9:27 am

You want to be using the format() expression, which is explained in more detail in this tutorial.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests