﻿ Matching Selections Variables
 Matching Selections Variables

This group of variables is related to the selections that satisfied the trigger's conditions.

They refer to one or more selections that were picked out by a trigger after going through a number of trigger conditions, or the selections specified in the "Selections" field of the trigger.

For example, if your trigger must bet on the favourite, then there will be only one selection that will match the conditions (the favourite itself).

If a trigger must be applied to "all matching selections", then these variables can be evaluated for each selection that satisfied the trigger's conditions starting with "Any Selection's" or "Fitting Selection's".

Variable

Type

Description

matching_number

integer

The number of selections that matched the previous trigger conditions (if the variable is used inside a condition) or all trigger conditions (if the variable is used in other trigger fields). For example:

Any Selection's Cards contain values A

and Trigger Expression matching_number is greater than 1

Check if there is more than one hand holding an ace.

match_[number]_

prefix

Use this prefix to address a particular selection that matched the trigger conditions. If used in a trigger condition, this prefix will access the selections that matched the previous conditions.

If used elsewhere in a trigger, it addresses all selections that the trigger will be applied to.

The [number] is the index of the selection. The first selection that was picked out by the trigger will have the index of 1, the next selection - index of 2 and so on. For example, if the variable is used inside a trigger condition:

Any Selection's Matched Lay is greater than 0

and Trigger Expression matching_number is greater than 1

and Trigger Expression match_1_card_1 is not equal to match_2_card_1

This means: find all selections that have one or more matched lay bets, and if there is more than one matching selection, check whether their highest cards are not equal.

If the variable is used in another trigger field, for example in the "Amount":

Action: back

Amount: (match_1_lay_matched + match_2_lay_matched)/2

Price: current best

This means: out of all selections that satisfied the trigger's conditions take the first two, then find the arithmetic average of their lay matched amounts.

The match_[number] can stand in front of any selection variable.