Conditional Branch: A Variable between two constant.

First, thank to whoever will answer this.


I'm trying to make something a bit complicated with Conditional Branches and Variables. What i need is an option like:


[IMG]http://puu.sh/r5ttE/8f1d1b9fea.png[/IMG]


That, but "In between constant 39 and 19". Not sure i made myself clear, the options that i got there are:


[IMG]http://puu.sh/r5tEo/71e0401521.jpg[/IMG]


The variable is supposed to have five levels on a range of 100. So, every 19, 39, 59, 79 it changes something. With those option i can't do that because there is no "In between". So i tought, is it possible to do that with the 4° page scripts?
use two nested conditional branches, one "higher than" and the other "lower than"
[IMG]http://puu.sh/r5wMs/71091a9817.png[/IMG]


Like this? It's that easy? Wow... my brain melted for nothing. Well, thanks Andar, you're a life saver.
@Lelou


I just saw your edit - that is even simpler and you didn't even need a nested condition. Just reorder them.


First condition: larger than 79, if yes do what is supposed to be done between 80 and 100. disable else-branch, go to end-label (or exit event processing) inside the branch.


Second condition: larger than 59, if yes do what is supposed to be don between 59 and 79, idable else-branch and go to end-label or exit event processing


and so on


After last branch, place end-label


the second test for lower than is no longer needed, because everything that was higher is already handled and jumped over the next conditions
[IMG]http://puu.sh/r5yJT/6977fe2bc0.png[/IMG]


Like this? And of course i place what i want to do before the Jump to Label: End in each branch. Right?
exactly

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-a-variable-between-two-constant.68069/