The functions return number of runs that meet the specified condition in the past records of the horse, jockey and stable respectively.
Syntax
HrCount('lCountIf',nRaces,'fCondition',nDefaultValue,cIncluding)
JrCount('lCountIf',nRaces,'fCondition',nDefaultValue,cIncluding)
SrCount('lCountIf',nRaces,'fCondition',nDefaultValue,cIncluding)
Argument |
Description |
Example |
||||||||
'lCountIf' |
|
'HrFP( )=1' |
||||||||
nRaces |
|
6 |
||||||||
'fCondition' |
|
'For HrFP( )=1 While HrDate( )>Date(1999,9,1)' |
||||||||
nDefaultValue |
Default value returned when no race satisfying the specified condition can be found. The data type of this value must be identical to that of normal return value. |
|||||||||
cIncluding |
When applying the function to past records, by default, races in the underlying meeting are not included. You may use this argument to change the scope. See the following page for details: The cIncluding Argument. |
'R' |
Returns
Numeric
Examples
HrCount('HrRating( )>80',6,'For HrDistance( )=1400')
The above example counts in last six 1400m starts in which the bodyweight of the horse is greater than 1000. Since the first argument of the function is a logical expression, RaceMate will count the starts (which satisfy the condition in the 3rd argument) if the expression returns true.
HrCount('HrRating( )',6,'For HrDistance( )=1400')
The above example returns the number of 1400m starts, in which HrRating( ) returns a non-null value, in the past record of the horse. If total number of races is greater than 6, the function will return 6 instead of the actual number. Please note that starts will be counted even if HrRating( ) returns 0.
JrCount(,'While JrSeason( )='+Str(JrSeason( ),4))
The above example returns the number of horses that the jockey has ride in this season.
HrCount(,'For HrDistance( )=1400 and HrAveRating( )>100')
The above example returns the number of races meeting the following conditions in the past records.
1. | 1400m race |
2. | Average rating of the race is greater than 100 |
See also
HrCountNZ( ), JrCountNZ( ), SrCountNZ( )
Page url: http://www.racematenet.com/english/help/index.html?hrcount.htm