IF statement Oddity

I am attempting to enable the option to allow whether CSV data has a header or not, yet whether it does or does not, when l choose the no header option, it returns 11 items, even though there are 12.

Any thoughts appreciated.

The If node is one of the few nodes which doesn’t have lacing it list level control. It defaults to shortest lacing as a result.

Try some design script as a workaround:

Options=[trueInput, falseInput];
Test ? Options[0], Options[1];