If I'm getting your line, you want to green up if the lay bet was matched. If it wasn't, you don't want to place the back bet, right?
If so, see the updated trigger file attached. To be honest, I could find a race where all your conditions would be satisfied.