This can be used for any multiple choice or Yes/No question.
To use this, first enter all of your questions – both the main questions and the sub-questions. A Subquestion can be created for any previous question, and show for any of the selections of the previous question.
After the questions are entered and saved, then there is a button at the top of the Questions setup page for “Question Logic”. See the examples below: