Closed nick-youngblut closed 1 year ago
Current example for process-when-empty:
params.inputs = '' process foo { debug true input: val x when: x ## 'EMPTY' script: ''' echo hello ''' } workflow { reads_ch = params.inputs ? Channel.fromPath(params.inputs, checkIfExists:true) : Channel.empty() reads_ch \ | ifEmpty { 'EMPTY' } \ | foo }
I'm guessing that x ## 'EMPTY' should be x == 'EMPTY'
x ## 'EMPTY'
x == 'EMPTY'
Yes, definitively. Thanks for reporting it
Fixed by https://github.com/nextflow-io/patterns/commit/9d66fbd39813f5b1139ea0cafceb02018b0c0109
Current example for process-when-empty:
I'm guessing that
x ## 'EMPTY'
should bex == 'EMPTY'