Alternative to Rule Engine (for If statements)

My Java is terrible.

Any chance the Python node will work for this? This is the option I’ve been exploring