Having problem restricting skills with YEP Skill Core

I'm trying to restrict skills based on a state, using this formula

Code:
<Custom Requirement>
if (user.isStateAffected(36)) {
  condition = false;
} else {
  condition = true;
}
</Custom Requirement>

That formula (with Custom Equip Requirement Condition) works with Yanfly Equip Core restrictions, and the way the custom skill requirements look in the help for Skill Core it appears to me that it should function there too. But for some reason, it isn't working.

Has anyone else come up against this issue, or know what might be going on?
Try using the variable "value" rather than "condition".
...it's the little things you miss...

Thanks! I feel pretty silly not noticing the differences from where I was copying and pasting.
Moved to: Javascript/Plugin Support

Original thread: https://forums.rpgmakerweb.com/threads/having-problem-restricting-skills-with-yep-skill-core.105866/