Adding a hidden field for logic

You could use the nested if-statement as discussed in one of our previous posts: