when doing if else like in the image below, what’s inside the if region will only be evaluated when the if condition is met, the else part however seems to be executed regardless (at least according to the quick test I just did…see below). Is there any trick to prevent that? If region plus If Not region looks rather ugly…
I’m afraid your observation is correct. we don’t have a dedicated if/else region. the workaround using another if region with a NOT before the condition is indeed current praxis.
afaik there might be a subtle difference between If and delegate, depending on how the compiler translates the code.
the if/else will call create only once (on the random node) while the delegate might be (re)created on invoke, thus recreating the random node (and setting a new random seed)
this can affect performance when running in hot loops.