#if $f1.has_single_item: cat $f1.single_item >> $out1; echo "Single item" #else cat $f1.forward $f1['reverse'] >> $out1; echo "Paired items" #end if