title: How to store form logic in machine readable format?
body: <p>Our objective is to create an application where users specify input in online forms. There is a lot of form logic involved. This means that the user flow is determined by the answer they provide in their forms. For instance, when a user selects &quot;yes&quot; at question 3, go to question 6 whereas if the user selects &quot;no&quot; go to question 4.</p>
  <p>Of course a python module with various cases (if, elif etc.) would work (in a convoluted way) but it feels like there might be a better way.</p>
  <p>For instance, TypeForm support logic, like below:</p>
  <p><a href="https://i.stack.imgur.com/Q0HYI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q0HYI.png" alt="enter image description here" /></a></p>
  <p>We are searching for a solution that will work nicely with a front-end UI (e.g. based on Node.JS/React/Vue etc.)</p>
  <p>We already tried TypeForm, Jotform but have struggled to find good programmer friendly solutions.</p>
  <p>Are you familiar with (Python) tools we can leverage to achieve the above?</p>