Hi @r_jain,
My idea would be to have a component beforehand having the user choose between the two options “Email” or “Download locally.” These options would be in a Single Selection Widget. Then I’d use a Rule Engine Variable node (since I’m using a CASE Switch Variable node) to convert the choices to numeric variable inputs that would identify which output port should be activated:
If you want to use an IF Switch node instead of the CASE Switch Variable node that I’m using, @bruno29a provides a great explanation of how to use it in this forum post: Controlling IF Switch Node , by a variable - simple case
If you’re new to using Switches in KNIME I’d also recommend watching this quick overview video: Switches in KNIME Analytics Platform - YouTube
Cheers,
Dash
