MZ Need help comparing variables

I'm trying to make a conditional branch that only triggers if Variable 1 is less than a certain number AND more than a different number.

Obviously the default editor choices do not allow me to do this. So I'm using the "script" condition, right?

But for the life of me I can't figure out how to get it to access the damn variable. My code is as follows:

JavaScript:
$gameVariables(26) >= 5 && < 10;

I've also tried
JavaScript:
$gameVariables(26) >= 5 && $gameVariables(26) < 10;

It doesn't work. I've checked the script call spreadsheet for MV (figured it was a good place to start, given that the MZ one isn't out yet) and seen how to SET a variable, but not how to check the value of one. I thought the above would do it, but apparently I'm wrong.

Please help me. This is such a simple comparison, and not being able to figure it out is absolutely maddening. 😐
Code:
$gameVariables.value(26)
Code:
$gameVariables.value(26)

Thank you so much! You've saved me!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-comparing-variables.126047/