Hacker News new | ask | show | jobs
by jwomers 1055 days ago
Hi! What a great personal project! I was trying to scrape a page and use GPT to analyze it, and then send me an email IF there was a certain type of (fuzzily defined) content on the page. How would I add the conditional check/step on the email block? Thanks!
1 comments

Great question! Right now the solution is pretty hacky, but if your code block outputs to stderr then we stop the loop execution.

As an example in Javascript, simply calling `throw new Error('break!')` will stop the run from continuing.

We plan to add conditionals, branching, etc. Baby steps :)