[Solved]Checking multiple conditions at once?

How can I check multiple variables at once? Basically the same idea as "and" in python, but in conditional branches? Is this possible?
I am trying to see if 2 enemies are dead in a battle to trigger another event.
I have this so far, is this the only way?

1724774627017.png
the condition above is basicly the same thing, so why check both?

switch check is as simple as:
$gameSwitches.value(x) && $gameSwitches.value(y)
in the scriptcall of the branch.
As ShadowDragon says, you could script it by looking up the script calls, but there doesn't seem to be a strong reason to - nesting two conditional branches like you're doing now accomplishes the same thing. It takes more clicking and keystrokes to type out the code.
Sorry, I'm rather new to rpg maker mz, how can I use the scriptcall?

As ShadowDragon says, you could script it by looking up the script calls, but there doesn't seem to be a strong reason to - nesting two conditional branches like you're doing now accomplishes the same thing. It takes more clicking and keystrokes to type out the code.

So if I am going to keep the nested conditions, how can I make it work?
In the other event pages, I am turning on the switch "side 1 down" and "side 2 down".
Just one other thing:
don't run means "never execute"

that run comes from "to run a program" and has absolutely nothing to do with escaping.
I don't own MZ just MV, but they are most like the same on eventing
with minor chance on functions.

nesting condition if they need to be ON is better on scriptcall if its need to be ON
or have the be OFF.


if Side down 1 = OFF
do things.
else
if Side 2 = ON
do something else
end
end

this part is different, if 1 switch need to be false and the other ON.
if: script: !$gameSwitch.value(x) && $gameSwitches.value(y)
means, if x = OFF and y = ON.

if you swap x and y for ON and OFF, than I could understand your nesting.
but nesting can be good, but it could also give troubles if you lose track.

you said you new, so I would suggest to follow some tutorials and the inbuilt
tutorial to understand the software to see how things works.

from there, you can make your own and extend what you need.
I finally figured it out, thanks for your help everyone!
This thread is closed due to being report as solved. If you need it reopened, let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/solved-checking-multiple-conditions-at-once.171462/