Blockly: how to use 'return;'

Hi @rlkoshak, use cases like these contain situations where certain rule triggers are not interesting or would cause infinite loops. Code like this effectively deals with that while preserving a good overall readability:

if(source == "Proxy") {
        logWarn("light", "Received command on " + triggeringItem.name + ", this should not occur, ignoring.")
        return;
}

I also have been experimenting with the “if return” block, but I never managed to exit the rule with it. only the function