Defining Constants for Custom 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

Defining Constants for Custom Stats

Postby Olaf72 » Thu Nov 18, 2010 2:41 pm

I'd like to define some Constants for use in Stats-Formulas or Conditions

Example:
#VP$IP# < Constant1 Blue
Constant1 <= #VP$IP# and #VP$IP# < Constant2 Cyan
Constant2 <= #VP$IP# and #VP$IP# < Constant3 Green
Constant3 <= #VP$IP# and #VP$IP# < Constant4 Yellow
Constant4 <= #VP$IP# Red


Is there a way to do this in PT3?
Olaf72
 
Posts: 50
Joined: Fri Jan 30, 2009 10:29 am

Re: Defining Constants for Custom Stats

Postby kraada » Thu Nov 18, 2010 3:25 pm

Not in a way that carries across from stat to stat no. You can of course define it individually for each stat you want with the actual values you desire.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Defining Constants for Custom Stats

Postby WhiteRider » Thu Nov 18, 2010 5:00 pm

You could add a Variable for each constant.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Defining Constants for Custom Stats

Postby kraada » Thu Nov 18, 2010 5:15 pm

Good point! I always forget about those :)
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