MV How to check for value of multiple variables?

Hello.
I am currently attempting to use one variable for each of my characters (I'm using variables 74-81 for this purpose.)
For variable 74, I have it set to roll a random number between 1 and 8. Same with variable 75.

Now for varible 76, I'm trying to conditional branch script to see if it is not equal to the values of both variable 74 and variable 75.
How would I write this in script? As an array or some sorts?
no, you'll need a loop to compare two values each one after another.

there are commands for checking elements of an array, but it doesn't work from that side, only from the other.
we might be able to point you to a better way if you give some context on what the numbers are and how they are determined however...
Hello.
I am currently attempting to use one variable for each of my characters (I'm using variables 74-81 for this purpose.)
For variable 74, I have it set to roll a random number between 1 and 8. Same with variable 75.

Now for varible 76, I'm trying to conditional branch script to see if it is not equal to the values of both variable 74 and variable 75.
How would I write this in script? As an array or some sorts?
So basically, you want vayr 76 just to not be equal to both???
Like if 76 = like 74 and 76 then something should happen?
If thats the case, then 2 simple conditional branches will do the trick:
1644615836249.png

Otherwise if you need only one of them to be same or not, you can make a switch or another variable wich actiavtes, something like this:
1644616036052.png

and then use that variable as true or false 0/1... or use switches...

If you meant something different, the pls explain it more ^^
You could use the "script" option in conditional branch and do

$gameVariables.value(76) !== $gameVariables.value(74) && $gameVariables.value(76) !== $gameVariables.value(75)
You could use the "script" option in conditional branch and do

$gameVariables.value(76) !== $gameVariables.value(74) && $gameVariables.value(76) !== $gameVariables.value(75)
Yes, that's what I was looking for. I wasn't sure on how to write the syntax before. Thank you very much.
@Otabo the problem with that syntax (the && script) is that it only works for a limited number of variables before it becomes too long. 74, 75 and 76 are no problem, but you indicated this goes up to 81.
that is why I suggested a loop, but a loop does not fit into a single script line either - you would have to use a multiline script box and then a way to check the result.
In other words, eventually two or more of those variables are going to return the same number?

Nevermind, I got it work just fine.
@Otabo the problem with that syntax (the && script) is that it only works for a limited number of variables before it becomes too long. 74, 75 and 76 are no problem, but you indicated this goes up to 81.
that is why I suggested a loop, but a loop does not fit into a single script line either - you would have to use a multiline script box and then a way to check the result.
That's not strictly true, you can use a .every loop and it's easily expandable without adding too much to the script:

Array.from({length: numberofelements}, (x, i) => i + minimumid).every(id => $gameVariables.value(comparing id) !== id);

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-for-value-of-multiple-variables.144859/