Pages:
Actions
  • #1 by mikethebet on 18 Jan 2019
  • Hi
    I am really struggling and have been for a while with lists
    Attached is my jockey trainer list trigger.
    I have tried it as a text file and put in the address to file.
    I have the names in " " as silk_jockey and train_silk are string values. I have tried with and without the comma.
    Mike
  • #2 by Oxa (WellDoneSoft) on 21 Jan 2019
  • Hi!

    The names of trainers and jockeys often contain their initials, not only surnames. See an example below:



    Your trigger is not working, because you only specified surnames.

    The correct condition would be:

    Selection's Jockey's Name is in list "Masayuki Abe", "Name2", "Name3"
    and Selection's Trigger Expression "silk_trainer" is in list "Scott Cooper", "Name2", "Name3"

    Note how you also need to take silk_trainer in double quotes, because this variable is also a text variable.

    It is a much better idea to just put them in text files (one name on each line, in double quotes) and use these conditions:

    Selection's Trigger Expression "silk_jockey" is in file {path to file 1}
    and Selection's Trigger Expression "silk_trainer" is in file {path to file 2}

    If you want to look for surnames only, i.e. parts of their full names, you can use:

    Selection'sTrigger ExpressionFIND("Abe", "silk_jockey")is greater than0
    ORSelection'sTrigger ExpressionFIND("Yadi", "silk_jockey")is greater than0

    AND
    Selection'sTrigger ExpressionFIND("Cooper", "silk_trainer")is greater than0
    ORSelection'sTrigger ExpressionFIND("Bailey", "silk_trainer")is greater than0


    See the attached triggers.
Pages:
Actions