Finding a Multiple in a Variable

Hey everyone.

Wondering how I can find multiples of a certain number. IE: Setting a variable to go up every five levels for instance.
The most direct way, is to have 3 different variables, one of them records the characters current lv, and the other to run a division calculation with such, putting the end results into the 3rd variable.
The easiest way is to use the modulo operand in control variables.


If the modulo to a number is zero, the original value was a multiple of the number.
The easiest way is to use the modulo operand in control variables.

If the modulo to a number is zero, the original value was a multiple of the number.
Mind showing me the process for it if it's not too much trouble?
If the number you want to check is in variable 012 for example and you want to check if it's a multiple of 7, then you make a single command


control variables [012] , Operation = modulo (mod), operant = 7


Then conditional branche, if variable 012 is now zero then it was a multiple of 7 - if it has a value between 1 and 6 (the rest/modulo after a division by 7) then it wasn't a multiple of 7.


If you want to keep the original value of V[012], then copy it to a different variable before checking

Original thread: https://forums.rpgmakerweb.com/threads/finding-a-multiple-in-a-variable.50427/