Conditional Branch > Script > Comparing

compare error.PNG

I have tried == and this script works from the Conditional Branch feature of RPGMV. However, whenever I try => or <= it throws an error. I have tried == > and < = = and still nothing (without the spaces of course).
Try it yourself with the same array element comparison I am doing.
It works with ==
But not with any other comparison -- for example, of greater or less / equal comparisons.

Here is what I am comparing:
$gameVariables.value(294)[0] <= $gameVariables.value(295)[0]


To sum up, this works:
will work.PNG


But this won't work => or <= or any version of it:


won work.PNG
I think you just need > or < to make it work or use 2 conditions per variable without
the =, == or === so far I know it.
Here is what I am comparing:
$gameVariables.value(294)[0] <= $gameVariables.value(295)[0]
Is a correct one, and its works. If in your project it doesn't, then you are doing something wrong with values of your variables or some plugins broke it.
Spoiler: screenshots
1590479709508.png


1590479738220.png


1590479746814.png


1590480009786.png

As you can see all works just fine
Uhhh, you do it wrong...

To make a "greater than or equal to" comparison,
NOT like this :
🙁=>
but this :
🙂>=
1590480344454.png

and if only the variable is an array.

Your "less than or equal to" comparison already correct tho.
you can make it shorter and will work better with this plugin, it can be easier than using
the ful syntac of $gameVariables...... =)
Thank you guys!

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-script-comparing.122062/