[SOLVED] State that hides skill

I am trying to create a state that will remove a skill while the actor has it, but then have the skill show up again once the state is removed. Using the seal skill command, the skill still appears in the actors list. I think I can use this tag -
Spoiler
<Custom Show Eval>
if (user.level > 50) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>
Where level would be changed to state, but I don't know how to do this.
Does it work if you replace it with "a.isStateAffected(x)"?
You are a lifesaver thank you so much it worked perfectly. I switched the true/false, in case anyone else comes across this.
Spoiler
<Custom Show Eval>

if (user.isStateAffected(36)) {

visible = false;

} else {

visible = true;

}

</Custom Show Eval>

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-state-that-hides-skill.107463/