Sam Harden provides step-by-step instructions to build a Docassemble interview that has conditional logic. Video 3 of 3.
Docassemble is a free, open-source expert system for guided interviews and document assembly, based on Python, YAML, and Markdown. Docassemble has strong implications for the potential of computational law because it is a free and straightforward tool for computing legal processes and legal functions.
This lesson provides an overview about how to use conditional logic Docassemble interview. Complete these steps and it is possible to start creating more dynamic user interviews to automate increasingly sophisticated tasks.
Replace name of judicial circuit, county, from previous template. (Link)
Open previous example interview, when you upload the new version of the template, there are now Undefined names for “circuit” and “county.” (Link)
Update questions to incorporate questions for the conditional logic. Here, you will create a question, add information for fields, and add a series of choices for the possible counties that can be used (Link)
Note: Conditional logic is a way to use features to determine which outcome a situation requires
How fields assign values (Link)
How logic blocks work in python (Link)
Note: Some basic information about conditional logic is available on wikipedia. More information about programming in Python is available at Automate the Boring Stuff.
Follow his latest work on his youtube channel, LegalTech School or check out his website samharden.github.io