Hide unusable skills based on class/subclass

Okay second attempt to post here, I apparently am no good at all of the rules 🙁 . . . so I apologize in advance.

1) RPG MAKER MV 1.6.1

So after searching the forum I found help hiding skills based on gear and on level, great, HOWEVER I am trying to make a skill using Yanfly Skill Core where a skill is available only if they have two classes (aka life magic class id 9 and energy magic class id 4), I have the requirements listed in the skill and it works for restricting use of the skill but still lists on the available skill list (just grayed out). I don't want the unusable skill to show up at all (unless they have the required classes), I hope all this makes sense, still trying to learn . . .

Here is a copy of my skill 'Note' field based off what I saw in other help posts and script calls:
<Require Class: 9>
<Require Subclass: 4>
<Custom Show Eval>
if (user.currentClass().id = 9) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>
if (user.currentClass().id = 9)

Try changing that line to
Code:
if (user.currentClass().id === 9)

In JavaScript (and most programming languages), a single = means "assign this value." == or === is a comparison, which is what you're trying to do, but most of the time in JavaScript, you want to use the triple version.

JavaScript has a feature people refer to as "truthy" and "falsey". Values besides true and false can still evaluate to true or false when used in comparisons (which is what an if statement does). When you have "user.currentClass().id = 9", what you're doing is assigning the value 9 to the user's current class Id and ultimately ending up with:
Code:
if (9) {
  visible = true;
} else {
  visible = false;
}

JavaScript thinks 9 is "truthy," so you're always going to evaluate the "visible = true" line, no matter what.
O.O
. . .
ROFLOL I can't believe I totally missed that! *Face palm*
Dear Zevia, thank you much! You saved me while I still had some hair to pull out!

Original thread: https://forums.rpgmakerweb.com/threads/hide-unusable-skills-based-on-class-subclass.104366/