Author Topic: Using Lists  (Read 852 times)

Tags:
  • All members
  • Posts: 207
Using Lists
« on: 18 Jan 2019, 21:14 »
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

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Using Lists
« Reply #1 on: 21 Jan 2019, 21:06 »
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.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

 

Please note, BetFair is seems to be currently OFFLINE