Author Topic: Venue name trigger  (Read 4223 times)

Tags:
  • All members
  • Posts: 528
  • Karma: +17/-5
  • Gender: Male
Venue name trigger
« on: Tue, 13 October, 2009, 21:21 »
I have always had trouble writing my triggers to identify only  a specific venues.
My work around is just to add "AND" conditions such as "Market's:Name:Contains:"South Pole"

I do this in the same block.
When I try to add a new block
AND....(condition)
AND.... (condition)

New Block....AND
Market's name contains xxxx
OR Markets name conatins xxxx
I get an error saying I must have the same conditions together.


My aim is to have a list of 'AND' conditions followed by a list or 'OR" conditions. These OR's are the venue names. Thus I only want to lay at certain tracks.
 
I suppose what I am trying to say is how do I add a block of 'OR' conditions within a trigger of 'AND' conditions? 
Improvise Adapt Overcome

  • Administrator
  • Posts: 8952
  • Karma: +337/-2
  • Gender: Female
*
Re: Venue name trigger
« Reply #1 on: Thu, 15 October, 2009, 08:04 »
As far as I understand, you need a combination of blocks, each connected with an "AND", and with two or more conditions indside each block connected with "OR", e.g.:

   Condition 1
   OR Condition 2
AND
  Condition 1
   OR Condition 2
...

I am attaching an example of such structure. You will see a red line connecting two blocks. It points to the fact that blocks of the same level MUST be connected with the same logical operator - either OR or AND. The error message you got indicates that you tried to mix operators, for example:

Block 1 AND Block 2 OR Block 3

This is a wrong way to do it!

I don't know what particular structure your trigger has, but hope it helps.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Usuários brasileiros, bem vindos ao nosso WhatsApp chat!

Присоединяйтесь к нашей официальной группе ВКонтакте!

  • All members
  • Posts: 528
  • Karma: +17/-5
  • Gender: Male
Re: Venue name trigger
« Reply #2 on: Thu, 15 October, 2009, 11:16 »
Thank you.
It finally clicked after I reviewed your help.
OR BLOCK with condition 1
                 next with a AND BLOCK
                          with OR Conditions 1a
OR BLOCK with condition 2
                  next with a AND BLOCK
                          with OR Conditions 2a  ....etc

Cheers
Improvise Adapt Overcome