Author Topic: Skipping a block  (Read 2726 times)

Tags:
  • All members
  • Posts: 83
Skipping a block
« on: 24 May 2013, 21:50 »
Can anyone help me with this please?  I've got a block containing several triggers - about seven I think.  The block is designed to work for only one selection.  At the moment I have a condition for every trigger in the block that the selection's ID is 1 (or whatever selection I'm betting on).  There are other conditions for each of the individual triggers.

Is there a way to just check the selection ID once and then skip the block if it isn't the right one? 

Thanks in advance.


  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Skipping a block
« Reply #1 on: 24 May 2013, 21:58 »
hi
you can use the activate and deactivate trigger/block actions.
activate block if the selections id is equal to xxxx
deactivate block if the selections id is not equal to xxxx


mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • Moderator
  • Posts: 3597
*
Re: Skipping a block
« Reply #2 on: 24 May 2013, 22:16 »
Hi
same suggestion as mcbee
All selection-specific blocks are deactivated by default.

Trigger
Activate trigger or block <selection block>
Condition:
Selection’s trigger expression sel_id is equal to <whatever selection I’m betting on>

This method can also improve the efficiency of the trigger because every selection block does not need to be parsed.
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 83
Re: Skipping a block
« Reply #3 on: 24 May 2013, 22:42 »
Hi and thanks.

I started using activate and deactivate but the problem I encountered was that there was a delay when a block re-activated which actually slowed things down more than doing things the way I am now.

I will give it some more thought.  Thanks for your help.

 

Please note, BetFair is seems to be currently OFFLINE