MV YEP Selection Control - State required - multiple states

I have a big attack that I want to only be able to target "Debuffed" targets. I have 13 Debuffs in my project.

I can use this command for the project to assess 1 state:

<Select Conditions>
State: x
</Select Conditions>

Is there a way to assess for ANY of the 13 States/Debuffs ?
Try something like this (untested)~
Code:
<Custom Select Condition>
var ids = [11,12,13,14,15,16,17,18,19,20,21,22,23];
condition = ids.some(function(id) {
  return target.isStateAffected(id);
});
</Custom Select Condition>
I.e. "condition is true iff the target is affected by at least one of the listed state IDs". 🙂
@caethyril that is the ticket! Thank you =)

Original thread: https://forums.rpgmakerweb.com/threads/yep-selection-control-state-required-multiple-states.130103/