Reference questions

I have an instruction in the questionnaire:

Condition 1: If there are 4 consecutive zeros to the previous questions, the interview should stop.
Condition 2: If there are 4 zeros to 5 consecutive questions, the interview should stop.

I have managed to set Condition 1. But how can I bring in Condition 2 to ensure that both conditions work perfectly?

Welcome back to the community, @Impact123! It would be great if you could share your sample XLSForm with the community. They will likely be able to assist you. When you do share, please focus on the relevant parts of your question rather than including the entire context.