Trying to get a recurring email update of new posts to the Gumloop forum. I’d like to filter the results to posts that have 1) fewer than 3 replies and 2) have been posted <48 hours ago. I’m trying to use Extract data inside an “if-else” to do that filtering but the if-else keeps failing w/ an ambiguous error message that sends me to the forum. Any ideas on what I can do to get around this?
I tried a different way and since a post with zero replies has a blank reply value, the filter breaks. How can I get these blank values to show up as a zero? Open to other suggestions beyond just this specific question. https://www.gumloop.com/pipeline?workbook_id=hcGWUnCQ821nWsCZuAUAsB
Hey @chris_dyer - The IF-ELSE node does not natively work on list outputs like that, we’re going to resolve this soon. Meanwhile you can use a Combine Text node as an intermediary and then wrap that in an IF-ELSE node.
A much better approach here would be to use a Filter node and for your second question you can specify in the Extract Data node not to output blank values, use zero instead.
Thanks for the reply @Wasay-Gumloop. I’m focusing on the second solution but this still didn’t work. I’m still getting blank values in my run. It looks like the run you had in your example didn’t have any blank values from the extracted data. I also tried filtering to Number is equal to “1, 2” and that had the same failure error.
You can add another filter node before the current one that filters out empty values. You can use the Is not Empty condition here.
Or you can bump up the AI model in the Extract Data node so that it sticks closely to this prompt: Reply count on the posts. Never output a blank value here, output 0 instead.