hi,
That cannot work, because, as time goes by, market_score1 and market_score2 will change, if a goal is scored, and so, when they change, the markets index will change, and the objective is to place the bet in the same index, using a drip lay, as per the triggers definitions.
if at half time, the score is 0-0, then the marketIndex will set its value as 1.... The initial bet is placed, where the markets index is 1...
Now, 10 minutes into the second half, a goal is scored, and it is now 0-1, and so, if we examine the current score index, it will now be 2, and this is NOT what I want. I only want to place a bet at market index 1. Of course, at this time, it is not possible to place a bet at score of 0-0, because this is not a valid score.. So, hopefully, you can see that I only want to place the bet, at the original market index, and if that is no longer possible, then the bet will not be placed...
Now, after 80 minutes, if no goal has been scored, since half time, then the selections market index will be 1, and a bet can be placed, BUT, only where marketIndex has a value, and of course, marketIndex has expired, and so, there is no index value possible. I cannot re-check the index at this 80 minute point, because, it is conditional that we only have the index of the market sat at half time point, so, even if there is no further scoring, it cannot be valid to look at marketIndex at that time.
the essential NEED is to be able to store whatever the score is, at half time, and keep this in a variable, and then, even at 85 minutes, if I check this stored value, it will be and always will be, the value as it was at half time. and even if a goal has been score at 65 minutes, then, any new bets will still be placed at the OLD market index (score), even if it snot possible to have a bet at this point.
the initial value of the market index needs to be stored, and no matter what happens after this time, I want to be able to reference this SAVED value, and even if the score changes, then, I still want to be able to get the original value..
There does not seem to be a way to store a value and keep it. The value I want, is the current score at half time, and as per the Value set in the marketIndex, this is the value I want, and no matter what happens afterwards, I only want to have the original value stored.
This is the value I need, and not some changing value.
Mark.