Between two numbers

I am making a thing where you get an item depending on the number a variable is set to. I want to know if it is possible to do a check


to see if the variable is between two numbers. Ex. (I wanna check if Variable 27 is between or equal to 67 and 71)
make a nested conditional branch


> if variable < X


  > if variable > Y


    result


  > end


> end
u can do this a easier way.
Set a conditional branch with script and than copy

$gameVariables.value(x) >= y && $gameVariables.value(x) <= z

in your conditional branch
x = variable u want to check
y/z = the value your variable should between.
Necro-post notice: @MrKlamma

This thread is over 5 years old now, and they already got an answer that works. I doubt they're still looking.

Original thread: https://forums.rpgmakerweb.com/threads/between-two-numbers.65170/