

Para 1 :Exactly, that's what I said in my posting.jimibt wrote: ↑Wed Feb 22, 2017 1:17 pmI've tackled this issue before when using ANY.. by assigning a signal value to the bet once it has been placed. I then on subsequent iterations of the logic, determine whether such signal for the selection already exists and ignore that selection if this is the case.
this approach may or may not be appropriate for your scenario. I don't know the inner workings of BA, but my gut feel tells me that Any Selection DOES NOT loop round all the selections as an atomic process. Im my opinion, it takes the first matching selection on each re-arm and applies the logic to that. this is why i add a signal to a selection that has already been visited and processed.
hope this helps
shaun - I think what you had implied may have been subtly different. In the earlier post you'd hinted that the Any selection object was similar to a For loop. It is in fact actually a single hit entity that only attempts to find the first/default selection that matches the criteria. it may give the impression of being a loop entity if you have a short re-arm on it. but to clarify, it definitely does not loop round all selections - it only finds the 1st matching.ShaunWhite wrote: ↑Wed Feb 22, 2017 3:48 pmPara 1 :Exactly, that's what I said in my posting.jimibt wrote: ↑Wed Feb 22, 2017 1:17 pmI've tackled this issue before when using ANY.. by assigning a signal value to the bet once it has been placed. I then on subsequent iterations of the logic, determine whether such signal for the selection already exists and ignore that selection if this is the case.
this approach may or may not be appropriate for your scenario. I don't know the inner workings of BA, but my gut feel tells me that Any Selection DOES NOT loop round all the selections as an atomic process. Im my opinion, it takes the first matching selection on each re-arm and applies the logic to that. this is why i add a signal to a selection that has already been visited and processed.
hope this helps
Para 2: I'm not sure either if the loop is exitted once a rule has been triggered, so I re-arm at 0.1 sec so if one fires it's not long until it comes round again to check the others.
I get it, we get it . Like a For/Next with an Exit For when conditions are met:)jimibt wrote: ↑Wed Feb 22, 2017 4:05 pmshaun - I think what you had implied may have been subtly different. In the earlier post you'd hinted that the Any selection object was similar to a For loop. It is in fact actually a single hit entity that only attempts to find the first/default selection that matches the criteria. it may give the impression of being a loop entity if you have a short re-arm on it. but to clarify, it definitely does not loop round all selections - it only finds the 1st matching.
hope you get the gist of the subtle diff here. I think many folks (myself included in earlier times) have a very vague understanding of what the Any selection mechanics are - i agree that a clarifying entry in the help texts would go a long way to rebalancing this..
I know you've done it now but for next time.... the selection level signals do take a while to get your head around.firlandsfarm wrote: ↑Wed Feb 22, 2017 4:14 pmShaun, I still cannot see how you assign the Signal to the unidentified runner. Let's say I set up a Signal and name it RunnerA, how many RunnerA signals are there? Is there just the one that is applied against the selection being monitored? If so how do I set and name a Signal for all the other selections that meet the rule on subsequent rearming/triggering? I can see that Signals can be very powerful but I'm not following how they are used in conjunction with the ANY option.
Thanks, no problem. It's so satisfying when the penny drops.firlandsfarm wrote: ↑Wed Feb 22, 2017 5:29 pmOK, so when a Signal is named it effectively sets up a one dimensional array to reserve a variable with that name for each runner. You just need these things explained!Thanks again Shaun.