Leg exit with respect to entry price

I wonder is this condition works on leg exit or not?