No. of Runners as Stored Value

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
firlandsfarm
Posts: 3323
Joined: Sat May 03, 2014 8:20 am

I may not be seeing the obvious but what's the best way to get the number of runners in a race as a Stored Value that can then be 'used' elsewhere? I can't see a direct way and am wondering if I need to set up a rule for each possible No. of Runners, something like this …

Rule1 … Condition: No of Selections = 6 … Stored Value: Runners=6
Rule2 … Condition: No of Selections = 7 … Stored Value: Runners=7
Rule3 … Condition: No of Selections = 8 … Stored Value: Runners=8
Rule4 … Condition: No of Selections = 9 … Stored Value: Runners=9
Rule5 … Condition: No of Selections = 10 … Stored Value: Runners=10
Rule6 … Condition: No of Selections = 11 … Stored Value: Runners=11
Etc...
Up to … well it could be 40 (and maybe started at 2!).

Would love an easier way. :)
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

create a rule x 30 to increment a stored value for market for every selection (1-30) and have it run trigger only once
EDIT
actually you could create 1 rule which stores two values (Runners, Counted) with condition Stored Value "Counted" <> 1
Runners = Runners + 1
"Counted" = 1
User avatar
firlandsfarm
Posts: 3323
Joined: Sat May 03, 2014 8:20 am

sa7med wrote:
Mon Apr 13, 2020 4:42 pm
create a rule x 30 to increment a stored value for market for every selection (1-30) and have it run trigger only once
EDIT
actually you could create 1 rule which stores two values (Runners, Counted) with condition Stored Value "Counted" <> 1
Runners = Runners + 1
"Counted" = 1
Thanks sa7med ...that started me thinking before you added your EDIT. I was thinking of a rule that cycles through All runners, increasing the SV by 1 for each runner and setting a Signal (Counted) as each runner is counted to disqualify them from future cycles so it would be ...

Set a SV ... 50 triggers @ 0.1 second interval ... Any selection ... Condition: Signal [Counted] not set ... Signal: Counted = 1 ... SV Runners = Runners +1

I think that would do it, thanks for getting me thinking the right way ... I knew there had to be an easier way to do it. :)
User avatar
Dallas
Posts: 23534
Joined: Sun Aug 09, 2015 10:57 pm

firlandsfarm wrote:
Mon Apr 13, 2020 4:57 pm
sa7med wrote:
Mon Apr 13, 2020 4:42 pm
create a rule x 30 to increment a stored value for market for every selection (1-30) and have it run trigger only once
EDIT
actually you could create 1 rule which stores two values (Runners, Counted) with condition Stored Value "Counted" <> 1
Runners = Runners + 1
"Counted" = 1
Thanks sa7med ...that started me thinking before you added your EDIT. I was thinking of a rule that cycles through All runners, increasing the SV by 1 for each runner and setting a Signal (Counted) as each runner is counted to disqualify them from future cycles so it would be ...

Set a SV ... 50 triggers @ 0.1 second interval ... Any selection ... Condition: Signal [Counted] not set ... Signal: Counted = 1 ... SV Runners = Runners +1

I think that would do it, thanks for getting me thinking the right way ... I knew there had to be an easier way to do it. :)
I have a template for this which I was going to post once the sports begin to return, but if you get stuck I could always upload it now
User avatar
firlandsfarm
Posts: 3323
Joined: Sat May 03, 2014 8:20 am

Dallas wrote:
Mon Apr 13, 2020 6:18 pm
I have a template for this which I was going to post once the sports begin to return, but if you get stuck I could always upload it now

Hi Dallas, I would be interested to see your approach ... you usually have refinements that I never think of! :)
User avatar
Dallas
Posts: 23534
Joined: Sun Aug 09, 2015 10:57 pm

firlandsfarm wrote:
Mon Apr 13, 2020 8:50 pm
Dallas wrote:
Mon Apr 13, 2020 6:18 pm
I have a template for this which I was going to post once the sports begin to return, but if you get stuck I could always upload it now

Hi Dallas, I would be interested to see your approach ... you usually have refinements that I never think of! :)
Here you go
viewtopic.php?f=56&t=20854

Its much along the lines of what Sa7med has described above
User avatar
firlandsfarm
Posts: 3323
Joined: Sat May 03, 2014 8:20 am

Dallas wrote:
Mon Apr 13, 2020 10:14 pm
firlandsfarm wrote:
Mon Apr 13, 2020 8:50 pm
Dallas wrote:
Mon Apr 13, 2020 6:18 pm
I have a template for this which I was going to post once the sports begin to return, but if you get stuck I could always upload it now

Hi Dallas, I would be interested to see your approach ... you usually have refinements that I never think of! :)
Here you go
viewtopic.php?f=56&t=20854

Its much along the lines of what Sa7med has described above
Thanks Dallas, it's along the lines I listed above as well with the addition of setting the initial value of Selections. I always used to set initial values of Signals and SV's but when looking at other Rulesets I noticed very few did so I took it that a Signal or SV always starts at zero when you first use it … are you setting it as a matter of good practice or can I not rely on it assuming a value of zero?
Post Reply

Return to “Bet Angel - Automation”