Today I was discussing this question with some people in Discord, and as a result one of them decided to write a script that does it via fairly small function. They told me I can share it, so share it I will.
Use it by pasting "isGameVarValue(variableId, ...values)" and "isGameVarLesserThan(variableId, ...values)" in the conditionals respectively, while changing the variable and values for those you want.
(Not sure if I can rename the file, so I'm going to leave that up to you)