Conditional for multiple variables

Hello!

Not used to using XP nor its scripting language, how would I make it so I could check two variable conditions at once?

I tried:

$game_variables[1] = 2 && $game_variables[2] = 5

But I imagine I'm still some way off!...
Yours already right.
It's just you use double equals == for checking condition.
Ahhh I was so close! Thanks! 🙂
can you actually use a script call in a conditional branch? Been a while since I used XP.

If you can't just nest them:
Code:
If cond1
  If cond2
    ... both are valid
  end
end

oh - unless you're actually writing a script or using the script event command. I assumed you were using conditional branch.
can you actually use a script call in a conditional branch? Been a while since I used XP.

If you can't just nest them:
Code:
If cond1
  If cond2
    ... both are valid
  end
end

oh - unless you're actually writing a script or using the script event command. I assumed you were using conditional branch.

Yes, I was surprised you can use script call in XP :cc. Originally I had quite a few nested conditionals but I find it much harder to follow in XP than MV so this was the solution!

This problem is solved so feel free to lock it down, mods. 🙂

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-for-multiple-variables.94934/