To control Workflow Stream Using If Switch using Flow variable from a Python Snippet

This combination could look something like this. You would have to give a variable that either says “top” or “bottom” and then use an if-switch to do what you want to do.

if($${Ivar_py_value_switch}$$ >0) {return “top”;}
else {return “bottom”;}

Edit - newer version: Switch - Examples of how to use Case When – KNIME Community Hub

1 Like