How do you make escape events?

I have an event that I want the player to be able to escape from if their level is high enough depending on the enemy event they're battling.

If LV <= 10, battle enemy A and if LV >= 5 escape

else If LV >10, battle enemy B and if LV >= 15 escape

else if LV > etc.

Spoiler


The first part of it works where if the player is under level 5 they can't escape and if they're over level 5 they can escape but the level 15 part of it doesn't work where if you're between LV 10 AND LV 14 you shouldn't be able to escape but you can. Any idea why it's not working?

Edit:
A more stripped down version with the same problem:
Hey there,

So I'm a little confused about your question, but from what I gather...it looks like you would need to set up an If / Else condition that basically reads IF a player level is greater than 15, a battle occurs that has the "Can Escape" option ticked in the check box when you create a Battle Processing event. ELSE if a player is less than level 15, a battle occurs that does NOT have the "Can Escape" option ticked in the check box.

Sorry if this isn't what you're asking.
That works too.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-make-escape-events.93554/