Hello ,
I have a Python snippet that outputs a table and also generates a variable . I want to check if this variable >0 , n this case one stream of the workflow should be followed. Else Another stream should be followed.
Like if variable>0 if node activated port with the output table generated in the python script .
How do I configure the IF Switch to achieve this?
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”;}
1 Like
Follow your Python Snippet directly with an IF Switch (Flow Variable Value)
node from the @Vernalis community contribution
This allows you to select the flow variable you want to switch on and a suitable value:
Steve
3 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.