[Chicago-talk] Decision tree code

Richard Reina gatorreina at gmail.com
Sat Feb 6 06:53:10 PST 2021

I am trying to write code that would guide a user through a series of
questions and depending on their answers given ask them different
questions. I can of course do this with procedural code but it has occured
to me that it might begin to get messy especially when exceptions mount.
For example, if the answer to the third question is no, then skip to
question 8. So I am looking for a way to structure such code to make it
cleaner and perhaps easier to maintain, Does anyone know of any examples of
similar projects that I can reference?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20210206/16ca510f/attachment.html>

More information about the Chicago-talk mailing list