TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Best framework for conditionals actions based on previous steps

1 pointsby diogopublioover 2 years ago
I am building a script that performs more like a decision tree based on user input, external inputs, and time<p>instead of writing something like: if step 0 is A and step 1 and B and it has passed 3 days, DO that (the output A is based on environment reaction sometimes outside of user control)<p>I also would not like to have ugly chained conditionals if step 0 == A if step 1 == A if step 2 == B (...) if step 1 == B<p>consider we could have 10+ steps<p>Do you have any suggestion on how to best approach this problem ? I was thinking about maybe exploring Graph Databases in order to be make the code simpler, but I am not sure. Do anyone know any framework that can make this easier ?

no comments

no comments