VXAce Check if variable is equal to a range of numbers for Conditional Branch

I am trying to set up a skill where what happens depends on which enemy is being fought. But, this game features a dynamic difficulty system, so the enemies that will be looked for each have 5 different variations. I am looking for a way to use one Conditional Branch to check for each range I need

1751673530102.png


$gameVariables.value(57) >= 91 && $gameVariables.value(57) <= 96 is what I tried before, but it causes a game crash.

1751673808508.png


I also tried $gameVariables(57) >= 91 && $gameVariables(57) <= 96 but get a different error.

1751673875901.png


How would this be done?
VXA uses RGSS3 as a language (Ruby-Based), the code you used is the one for MV/MZ (javascript based). You would have to use a different syntax for VXA

However you can easily do this without script, just use two nested conditional branches - the first checking for Variable 57 is greater or equal to 91 and the second one inside the indent of the first checking if the variable is lesser or equal 96
This is the correct code for that call you made,
Code:
$game_variables[57]>=91 && $game_variables[57]<=96
Both Andar's method and this one are valid.

Original thread: https://forums.rpgmakerweb.com/threads/check-if-variable-is-equal-to-a-range-of-numbers-for-conditional-branch.178730/