Pages:
Actions
  • #1 by bobh on 08 Feb 2023
  • Hi all,

    I'm hoping this has a simple solution, but I can't work it out!

    I have a trigger that throws up a few qualifiers (eg selections under $5.00 say), and I then only want to back the runner with the least days since last run (ie 10 is better than 21).

    Is there a condition that will do this?

    Thanks in advance, and apologies if it is a simple solution.

    Bobh
  • #2 by MarkV on 08 Feb 2023
  • Hi
    The variable is silk_days. When I tested it there were quite a few selections where silk_days = zero i.e. 1st run.

    Try this in test mode:

    ...your conditions first, then
    and selections trigger expression silk_days is greater than 0
    and selections sorting order is defined by silk_days
    and selections match_index is equal to 1

    this will pick the selection with the smallest number of days since last run but greater than zero 
  • #3 by bobh on 08 Feb 2023
  • Thanks Mark,

    I'll give it a try asap.

    bobh
Pages:
Actions