Compare stored value with selection name

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
User avatar
doctor143
Posts: 67
Joined: Wed Jul 31, 2019 3:10 pm

How can I extract the numeric value from a selection name (e.g. O/U +3.5) and compare it numerically, so that a rule places a $10 lay bet on all selections where the extracted value is less than 4 (i.e. 0.5, 1.5, 2.5, 3.5)?

I can extract the value but not sure how do I compare it? if an expert could help please
You do not have the required permissions to view the files attached to this post.
User avatar
doctor143
Posts: 67
Joined: Wed Jul 31, 2019 3:10 pm

Seems like my question has been ignored for the second time. Any expert who would like to share insights on this?

Regards,
Doctor
User avatar
Euler
Posts: 26963
Joined: Wed Nov 10, 2010 1:39 pm

If you’ve already extracted the number into a stored value then the comparison part is straightforward.

When you extract the value from the selection name make sure the stored value is saved as a number. Once it’s stored, you can reference it in a condition.

Add a **Stored Value Condition** to the rule that places the lay bet.

Configure it like this:

Scope: Selection
Stored value name: the name you used when extracting the number
Check value type: Number
Condition: Is less than
Value: 4

That will evaluate the extracted value numerically, so any selection where the stored value is 0.5, 1.5, 2.5 or 3.5 will pass the condition and trigger the £10 lay bet.

Typical workflow is:

1. Set/Modify Stored Value rule
Extract the number from the selection name and store it (eg value = 3.5)

2. Lay Bet rule
Add a Stored Value Condition
Stored value < 4

The important bit is that the stored value condition is set to check the value as a number, not as text.
Post Reply

Return to “Bet Angel for newbies / Getting started”