variant table structure

Hi All,

I need to perform a calculation based on a condition, but once the decision is made, I cannot close the condition, with an end if or case switch end as the different branches result different structures.

What is the right way of managing a situation like this?

decision.knwf

thank you