MZ Help with Conditional branch script to have 2 conditions

Hi! could there be a way to set in a conditional 2 requirements with a script? like

"If actor X is in the party at lvl Y" then etc...

I´m trying to make an evolution and de-evolution system for 100 something characters when talking to an event so I know I could make
"if actor X in party" and inside it "if var/switch on with with actor lvl Y" then etc...

but I was wondering if a script like this, to have directly 2 conditions on the conditional could work to streamline the process, and for the de-evolution I would use "if actor Y is in the party with name Y" then etc (transform back to X)

Thanks a mil!
A script wouldn't be necessary, as these are just nested conditional branches, but you can check the script part of the conditional branch command and put:

Code:
$gameParty.members().some(actor => actor.actorId() === X && actor.level >= Y)

to check if actor X is in the party and also has level Y.
A script wouldn't be necessary, as these are just nested conditional branches, but you can check the script part of the conditional branch command and put:

Code:
$gameParty.members().some(actor => actor.actorId() === X && actor.level >= Y)

to check if actor X is in the party and also has level Y.
Aah yess that´d be perfect!! and how it would be to check also the actor name? && actor.name = 'Name' behind that too? Thanks a million!
Pretty much:
Code:
$gameParty.members().some(actor => actor.actorId() === X && actor.level >= Y && actor.name() === "Name")
Pretty much:
Code:
$gameParty.members().some(actor => actor.actorId() === X && actor.level >= Y && actor.name() === "Name")
Awesome!! Thanks a mega million!! 😍
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-conditional-branch-script-to-have-2-conditions.177878/