Author Topic: How do I combine two conditions?  (Read 4238 times)

Tags:
  • All members
  • Posts: 87
How do I combine two conditions?
« on: 30 Jul 2020, 11:13 »
Hi, I need to deselect races which are both 0.7 furlongs and have over 15 runners.
How do I do this?
I know how to set the variable for over 15 runners and I know the variable for 0.7 furlongs, but cannot seem to combine them on one condition. Using them separately will deselect all races with over 15 runners and deselect all 0.7 furlong races which is not what I want.

  • Administrator
  • Posts: 8819
  • Gender: Female
*
Re: How do I combine two conditions?
« Reply #1 on: 04 Aug 2020, 20:20 »
Hello!

The correct condition block would be (I assume you meant 7 furlongs, not 0.7):

AND NOT
  Selection's Trigger Expression market_length is less than 1408
  and Market's Number of Selection's is greater than 15

The AND NOT is key here.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

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

  • All members
  • Posts: 87
Re: How do I combine two conditions?
« Reply #2 on: 04 Aug 2020, 21:38 »
thanks oxa,
i've always wondered how to use the and not block.

  • All members
  • Posts: 87
Re: How do I combine two conditions?
« Reply #3 on: 09 Oct 2020, 21:01 »
Hi Oxa,
If I wanted the trigger to deselect all NHF races as well as the 7 furlong races with more than 15 runners (previously mentioned), what do I need to add to the existing
AND NOT
  Selection's Trigger Expression market_length is less than 1408
  and Market's Number of Selection's is greater than 15 ?

I thought it would have been using OR NOT along with Market's Name contains "NHF" but it wouldn't let me add that.

  • All members
  • Posts: 33
  • Gender: Male
Re: How do I combine two conditions?
« Reply #4 on: 09 Oct 2020, 23:04 »
I think you do this by adding blocks within the block (at the same level) for each of your condition groups, so:

AND NOT
   OR
      Sel...(what you already have)
      and...
   OR
      Sel...Market Name contains NHF

  • All members
  • Posts: 87
Re: How do I combine two conditions?
« Reply #5 on: 09 Oct 2020, 23:57 »
Thanks for your help Purity.
However, I don't understand how to add the blocks at the same level.
I am getting the white cross on red circle stating that same level conditions and blocks must be connected by identical logical operators (AND,OR, ND NOT, OR NOT)
See attachment and let me know what I have done wrong.

  • All members
  • Posts: 33
  • Gender: Male
Re: How do I combine two conditions?
« Reply #6 on: 10 Oct 2020, 10:51 »
The first condition grouping is still in the AND NOT block, and not the 1st OR block (which is empty). See attachment for how it should look.

  • All members
  • Posts: 87
Re: How do I combine two conditions?
« Reply #7 on: 10 Oct 2020, 13:26 »
Brilliant!
Thanks Purity.

 

Please note, BetFair is seems to be currently OFFLINE