Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Skips using Next Loop Iteration | Problem?

Hi all, I seem to be having an issue with skips and loops. I have four total questions in a loop:

Anchor 1 = q1q3
Anchor 2 = q2q4

My requirement is that if the first iteration of q1q3 = 2, then skip to the second iteration (skipping the first iteration of q2q4). If the second iteration of q1q3 = 2, skip to the next question.

I have successfully tested the first skip to "Next Loop Iteration".
 q1q3.1 = 2 

My problem is that if the second iteration
 q1q3.2 = 1

I do not see the second iteration of q2q4 (because this skip should only happen if q1q3.2 = 2). It seems the first skip takes precedent. I cannot understand where I'm getting tripped up. Hopef this question makes sense.

Any advice would be appreciated. Thanks.
asked May 12, 2017 by WTW_cal Bronze (1,355 points)
retagged May 12, 2017 by Walter Williams

1 Answer

0 votes
If you add LoopIteration() to your skip logic, you can make sure each skip only runs if the respondent is in the relevant loop iteration:

q1q3.1 = 2 And LoopIteration() = 1

q1q3.2 = 2 And LoopIteration() = 2
answered May 12, 2017 by Zachary Platinum Sawtooth Software, Inc. (79,375 points)