Hi
in test mode try condition blocks like this:
OR
selections rank is between 1 and 2
and selections trigger expression r_3_back_price-r_1_back_price is greater than MBP
OR
selections rank is between 1 and 3
and selections trigger expression r_4_back_price-r_1_back_price is greater than MBP
OR
selections rank is between 1 and 4
and selections trigger expression r_5_back_price-r_1_back_price is greater than MBP
Thanks MarkV
For testing, I created 3 blocks with the Alert command action:
BLOCk1:
selections rank is between 1 and 2
AND
selections trigger expression r_3_back_price-r_1_back_price is greater than MBP
BLOCK2:
selections rank is between 1 and 3
AND
selections trigger expression r_4_back_price-r_1_back_price is greater than MBP
BLOCK3:
selections rank is between 1 and 4
AND
selections trigger expression r_5_back_price-r_1_back_price is greater than MBP
MBP = 4.9
Example 1:
Greyhound racing (G1, G2 ... G6), we have the following back_prices, when monitoring begins:
G1 = 2, G2 = 4, G3 = 5, G4 = 7, G5 = 10, G6 = 15
--> result: BLOCK2 and BLOCK3 are executed and should be only BLOCK2.
Example 2:
Greyhound racing (G1, G2 ... G6), we have the following back_prices, when monitoring begins:
G1 = 2, G2 = 4, G3 = 8, G4 = 12, G5 = 14, G6 = 15
--> result: BLOCK1, BLOCK2 and BLOCK3 are executed and should be only BLOCK1.
Summarizing: the trigger has to test the conditions in the sequence and, finding a true one, do not test the following ones.
In my trigger, I will not do 3 blocks; I need the condition test to return a unique selection of favorites: G1, G2 or G1, G2, G3 or G1, G2, G3, G4 so that the trigger dutching using only one of these selections.
If it was in a BASIC type language, it would be easy because I would use IF, THEN, ELSE ... I do not know yet if the MFP supports this type of programming.
Thanks in advance for the next help.