MV Yanfly Skill Core Custom Requirement

Trying to make a triple-team skill that requires 3 specific actors to both be present in the current party and free of several states that would preclude them using the skill (dead, sleep, frozen, etc). I've been using the provided script for a dual skill that works perfectly, but I can't figure out how to add another actor to the mix. I thought it would be as simple as just adding an && and then slapping the second actor after it, but that didn't work. Pls halp

Spoiler
Code:
<Custom Requirement>
if ($gameParty.members().contains($gameActors.actor(1))) {
var status = [1, 8, 10, 36, 93, 94];
value = true;
for (var i in status) {
if ($gameActors.actor(2).isStateAffected(status[i])){
value = false;
break;
}
}
} else {
value = false;
}
</Custom Requirement>
You were almost there. However in your for-loop you need to slap the other actor behind it with an ||. Otherwise It will only set value to false if both actors have that state. So your end result would be:
JavaScript:
<Custom Requirement>
if ($gameParty.members().contains($gameActors.actor(1)) && $gameParty.members().contains($gameActors.actor(2))) {
  var status = [1, 8, 10, 36, 93, 94];
  value = true;
  for (var i in status) {
    if ($gameActors.actor(1).isStateAffected(status[i]) || $gameActors.actor(2).isStateAffected(status[i])){
      value = false;
      break;
    }
  }
} else {
  value = false;
}
</Custom Requirement>

EDIT: fixed typo
You were almost there. However in your for-loop you need to slap the other actor behind it with an ||. Otherwise It will only set value to false if both actors have that state. So your end result would be:
JavaScript:
<Custom Requirement>
if ($gameParty.members().contains($gameActors.actor(1)) && $gameParty.members().contains($gameActors.actor(2))) {
  var status = [1, 8, 10, 36, 93, 94];
  value = true;
  for (var i in status) {
    if ($gameActors.actor(1).isStateAffected(status[i]) || $gameActors.actor(2).isStateAffected(status[i])){
      value = false;
      break;
    }
  }
} else {
  value = false;
}
</Custom Requirement>

EDIT: fixed typo
It's a Christmas miracle, thank you so much, that has been killing me for quite some time! I see where I went wrong there, thank you for the explanation as well.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-core-custom-requirement.142965/