cancel
Showing results for 
Search instead for 
Did you mean: 

Allow pipeline execution on the basis of expression result of previous snap

amit_trivedi
New Contributor

How can I allow a pipeline to continue execute/not execute on the basis of the result of expression value of previous snap.
For example: I wan to continue pipeline execution only if there are some records exists in the csv file which I read in previous snaps in the pipeline else not continue execution.
Similarly, I want to check records in a sql table and if count >0 then I want to continue execution else I want to exit.

5 REPLIES 5

bojanvelevski
Valued Contributor

Try $.hasPath('input'), where ‘input’ is one of the fields you are reading either from the csv or sql.