Jump to a line in a rule

Hi, it is possible to jump to a specific line in a rule, when tthe rule executes with many IF-iterations?

then
    if (item.state == ON) {
        go To "ABC"
    }
    **ABC** {
        // do stuff
    }

I want to use this, since i have very complex rules running. Some different conditions lead to the same xexecution. I want to make my rules a bit easyer to manage for me.

Is this somehow possible?

So you are essentially asking for a goto statement. No goto is not supported in Rules DSL or hardly any modern programming language. But there are lots of different standard programming constructs that should be used instead:

And of course all of these could be combined.

Which is best? :person_shrugging: You don’t show the rule.