Need help with some switch work.

Basically, I want to make the following happen:
If switch 1 is on, but switch 2 is off, X happens.
If switch 1 is off, but 2 is on, Y happens.
And if both are on, Z happens.
I haven't been able to even put something together to make this happen, and if it helps in any way I am also open to using variables instead of switches.
Conditional Branch commands can be nested inside one another, e.g.
  • If Switch 1 is ON:
    • If Switch 2 is ON:
      • Show Text: Both switches are on.
    • Else:
      • Show Text: Switch 1 is on, switch 2 is off.
  • Else:
    • If Switch 2 is ON:
      • Show Text: Switch 1 is off, switch 2 is on.
    • Else:
      • Show Text: Both switches are off.
I've used Show Text here, but you could put whatever you like in the branches. 👋

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-some-switch-work.164809/