hi
if you want to know how many matched lay bets there are, then use market_mlnum
the reason why your lay_matched did not work is because it needs a rank or index number to look at
s_1_lay_matched = index 1
r_1_lay_matched = rank 1
but when used in a trigger condition, then lay_matched is ok, because the trigger looks for any selection with a lay matched amount
mcbee