Pages:
Actions
  • #1 by liltbrockie on 11 Sep 2019
  • Horse Racing:

    Imagine, if you will, a set of variables assigned to each selections index...

    Eg:

    Selection Index 1 = myvar1
    Selection Index 2 = myvar2
    Selection Index 3 = myvar3  ... etc etc

    Now, we are setting these variables and updating them over time.

    so myvar1,myvar2 and myvar3 and all the myvar's are being updated every second with a new value, a 'score' if you like... for how likely they are to win/lose.


    After a set amount of time, how can I then 'sort' that list of myvars and, for example, dutch back the top half?

    For example...

    After X seconds has passed...

    I have arrived at..

    myvar1 = 1.2
    myvar2 = 1.5
    myvar3 = -3
    myvar4 = 20
    myvar5 = 3.2
    myvar6 = -4

    I then MUST Dutch Back the top half...

    I want to Dutch Back

    (myvar4 = 20,myvar5 = 3.2,myvar2 = 1.5)

    How can I tell what I need to dutch back... how can I write the selection?

  • #2 by MarkV on 11 Sep 2019
  • Hi
    Just an idea, if it's six selections you could probably do it with nested IF(...) and MAXV(...) functions. If you have not seen it yet some related further reading here. 
  • #3 by liltbrockie on 11 Sep 2019
  • Yer its not just 6 selections though... its the whole field.... so could be as much as 20+ runners lol

    The thought of trying to do a nested IF statement for all of these permutations does not appeal as you can imagine :-(
Pages:
Actions