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
Compare stored value with selection name
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.
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.
