End if node always concatenating inputs

I would like to optionnaly run a normalizer calculation based on a boolean.

To do so, I am using a boolean widget, an If-switch and a End-if


I have cabled the output of the boolean to the If switch

I have selected the output variable of the boolean node in the “port choice” of the If-switch .

My input table has 120rows x 5col, the output table of the End-if node always has 240 rows x 5col, the node always concatenates the two routes.

I would like the output table to be either 120rows containing the normalised or raw data, depending on the boolean choice.

Am I using the wrong tools ?