How to combine two Multiple Selection Widgets with Switch logic in KNIME?

Hello experts,

I would like to use the Switch function to solve my current issue. I have been working on it the whole day but still couldn’t figure it out, and my mind is really tangled.

I am using two Multiple Selection Widgets, each selecting different columns, but I want to handle three situations:

Multiple Selection Widget 1 has values but Widget 2 does not → Only show the results filtered by Widget 1.

Multiple Selection Widget 1 has no values but Widget 2 does → Only show the results filtered by Widget 2.

Both Multiple Selection Widget 1 and Widget 2 have values → First filter by Widget 1, then further filter by Widget 2.

In short, I only want to end up with one final output table.

Could you please advise me on how to modify my workflow?