Nested IF Statements

RPG Maker's VX Ace conditional branch statement is a standard "IF - THEN ELSE" statement. Is there a limit to the IF statement s. For instance, you have "IF" Main quest = 1", "ELSE IF Main Quest = 2", etc. If here is limit on the nested if statement I will use other operands such as less or greater than to shorten the number of IF statements.


Garet Jax
There's no limit
there is no direct limit, but too many nestings might bring the conditional branch too far to the right to be readable.


However, there is no need for an else in examples like yours - as long as you check for equals you can simply disable the ELSE as no variable can be equal to two different values.

Original thread: https://forums.rpgmakerweb.com/threads/nested-if-statements.60313/