title: How to create Logic Syntax for HTML form builder
body: <p>If you know of any open source project that does something similar I'd be happy to look at the source code. Example of what I am looking for. You custom build a form that looks similar to</p>
  <p>Name:<br />
  Address:<br />
  Zip Code:<br />
  Gender: Male/Female <br />
  (Now in this field I would like for the admin to be able to define a logic criteria, If Gender was female then some questions would should up, If male other questions would show up). This would be done dynamically since I would not know what the customer built.</p>
  <p>Female Question One: (Logic Syntax that customer would put would be <code>[gender] = 'female'</code>)</p>
  <p>So How would I go implementing something like that. I would prefer if it is in PHP but other languages would be fine.</p>
  <p>Here is a Picture, this would be entered by the user and I would have to parse it.
  <img src="https://i.stack.imgur.com/ibh1A.png" alt="enter image description here" /></p>