>
In my example if the first expression returns with false no other iteration made just return with the predefinied null variable.
True, but I was trying to merge your example with what I have seen in the codebase, sorry if that came across the wrong way.
>
I really hate negated expressions and mid-block returns but this is not
my code I just wrote some plugins to fit RC in my environment.
The way I'm applying them right now, I don't particularly enjoy them either, but I do think they're the lesser of two evils. As discussed before - what you want to have, in the end, is a separation into functions. I think disentangling those large if statements is a good first step towards that.