Would like to find a neater way of checking for multiple variables at once

This might be a silly question but I have an event to check if the player has at least one of any of the items listed below, however, I plan on adding more items and was wondering if there is a shorter form of the script that allows to check for all those variables instead of having to use this script and keep adding a variable check to every item I add.

JavaScript:
$gameVariables.value(5) == 0 && $gameVariables.value(3) == 0 && $gameVariables.value(6) == 0 && $gameVariables.value(7) == 0 && $gameVariables.value(8) == 0&& $gameVariables.value(9) == 0



Spoiler: Common Event Screenshot
1716485163850.png

Thanks,
I wasn't sure whether those variables were being used someplace else - the event could, of course, be a bit more efficient without them.

But this can replace your current conditional:
Code:
![3, 5, 6, 7, 8, 9].some(id => $gameVariables.value(id))
It works! Thanks a lot!

This event happens every battle so it checks at the beginning of every turn to make sure the player is able to act in their turn.

Would there be a better way to arrange this?
Logically, it seems like it would be more efficient to check when any of those items are used, if it should trigger Game Over then.

Unless the player has to use one of them every turn, in which case it doesn't make much difference.

Original thread: https://forums.rpgmakerweb.com/threads/would-like-to-find-a-neater-way-of-checking-for-multiple-variables-at-once.168935/