See Title above
That is a very broad question with no short answer. It sounds as though you are asking about question logic. I would recommend that you review the SurveyGizmo documentation – http://help.surveygizmo.com/help/article/link/setup-question-logic first. This page has working examples and a video tutorial that might help answer your question.