Scenario: You ask respondents to rate there satisfaction level for Product, Support and Service. If respondents give a low rating of 1 or 2 then they should be asked to comment why they gave a low rating.
#if (${Q2_1} == 1 || ${Q2_1} == 2)
$survey.branchTo("Q3")
#end
#if (${Q2_2} == 1 || ${Q2_2} == 2)
$survey.branchTo("Q4")
#end
#if (${Q2_3} == 1 || ${Q2_3} == 2)
$survey.branchTo("Q5")
#end
Here: Q2 is the question code for the Matrix Question. The questions in a matrix are referenced in the following way: Q2_1 for the first question in the matrix. Q2_2 for the second and so on. The first statement checks if Q2_1 is scored as 1 or 2, if true then branching is set to Q3. Similarly the second and third if statement checks if the second question and the third question were scored as 1 or 2 and branch to the corresponding questions if true.