I am looking for a way to create conditions dynamically in a C#/winform front end with a SQL back end. Right now it is a dynamically generated question and answer form. The database has one table with the questions and another with the possible answers. I add a label with the question and a combo box with the answers. I have all of that working. My issue is I can't come up with a way to create conditions. An example being if someone answers "Yes" to question 2 then they have to answer 2a and 2b or if they answer "No" then 2a and 2b become "N/A". How do I create that link? Can I store an if statement in the database and pass it into the program?
Edit:It is more of a survey. There are no right or wrong answers.