MV Yanfly's skill core - check if a specific actor is in the party

Hi everyone!
Please forgive me if this question has been answered before. I'm using Yanfly's Skill core plugin and want some skills to only be usable when a certain actor is in the party that's summonable. The summoning part I got down with a common event and the
Party System plugin, that was the easy part.
Now if I understand it right I should be able to limit access to the skill in question with the
<Custom Requirement> notetag, and from what I understand the proper notetag should read

<Custom Requirement>
$gameParty.members().contains($gameActors.actor(25)) {
value = true;
} else {
value = false;
}
</Custom Requirement>

But that doesn't work, I can still use the skill even if actor 25 is not in the party.
What am I doing wrong? Can anybody help?
Thanks in advance!
Try one of these instead:

<Custom Requirement> if ($gameParty.members().contains($gameActors.actor(25))) { value = true; } else { value = false; } </Custom Requirement>
<Custom Requirement> value = $gameParty.members().contains($gameActors.actor(25)); </Custom Requirement>
Oh, it worked! Or rather both work. Thank you so much. I couldn't have dreamt of such a quick solution!
Thanks!
Great! They should both do the same thing, it's mostly a matter of preference.

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.

Happy RPG Making~👋

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-skill-core-check-if-a-specific-actor-is-in-the-party.142154/