Hi
Will try to help
I think bm_type is what you need.
From manual explanation.....
"The type of the last non-SP matched bet placed on the selection.
The variable will return the index that corresponds with the type of
the bet. Thus, 1 stands for a lay bet, and 2 stands for a back bet. If
no matched bets found, this will return 0."
So...
First you need be sure u have any kind of bet. U can use this.
And selection index is equal to x
And selection trigger expression bm_number is greater than 0
Now, dont know how you intent to use it,but after u know there are bets placed in this index, using this formula will give u the last bet price u place, based on bm_type.
IF(bm_type=1,bm_layp,bm_backp)
Hope that fix your problem
pcal72