write a string in the HUD

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

write a string in the HUD

Postby turutu » Thu Nov 11, 2010 8:54 pm

i am trying to do that but i dont know what i need to use in the format of the stat info.

thank you
turutu
 
Posts: 4
Joined: Wed Apr 14, 2010 1:29 pm

Re: write a string in the HUD

Postby turutu » Fri Nov 12, 2010 5:24 am

i want in my HUD something like

IF( RFI_CO>40, "call", 0)
turutu
 
Posts: 4
Joined: Wed Apr 14, 2010 1:29 pm

Re: write a string in the HUD

Postby WhiteRider » Fri Nov 12, 2010 5:34 am

You do that in the Format Expression, with something like:

if( expression, 'call', '' )

You need to use the expression from the Value Expression of the stat in the format expression, so if the Value Expression is:
(cnt_p_rfi_co / cnt_p_co) * 100
..your Format Expression would be:
if( (cnt_p_rfi_co / cnt_p_co) * 100 > 40, 'call', '' )

See "Format Expressions" in the Tutorial: Custom Reports and Statistics.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: write a string in the HUD

Postby turutu » Fri Nov 12, 2010 9:05 am

thank you, very easy but if dont reply i cant found that

thanks again
turutu
 
Posts: 4
Joined: Wed Apr 14, 2010 1:29 pm


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

Who is online

Users browsing this forum: No registered users and 1 guest