Need Help on level restriction

I want to do a event where there's an npc blocking an entrance because the protagonist's stats/level is too low, he/she will only move/let you in once you reach the level cap or surpass it. How would I do that? Do I have to use IF statements?
This is how I would do it:
1591652833763.png

For this example, I made it so that the player had to be at least level 10 to get through. Hope this helps!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-on-level-restriction.122421/