Branch Logic: How can I set a condition that the response is a multiple of a specific number? | XM Community
Skip to main content
Question

Branch Logic: How can I set a condition that the response is a multiple of a specific number?

  • July 8, 2023
  • 3 replies
  • 73 views

Forum|alt.badge.img+2

Hi everyone,
I would like to set a condition that a number is a multiple of a specific number (for example, 17). Actually, since I have the option to answer two numerical questions, I would like the reference numbers (of which I accept all multiples) to be different.

So, participants will have to answer two numerical questions. In order to have a specific block, I would like the condition to be that in the first response there is a multiple of 17 (for example), while in the second response there is a multiple of 8. Is that possible?

Thank you in advance.

3 replies

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • July 8, 2023

We can use Math operation to get the reminder ans use this in branch logic.


Sachin Nandikol
QPN Level 6 ●●●●●●
Forum|alt.badge.img+44
  • QPN Level 6 ●●●●●●
  • 530 replies
  • July 8, 2023

Hi @Pao_123,

Please find below link for your reference:

https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/piped-text/math-operations/#Introduction

 

In my scenario this worked for me. Let me know if this works for you as well or not.

 

Regards,

Sachin N


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • 3 replies
  • July 8, 2023

Thank you for your responses. I haven't found anything to ensure that all multiples of a number are accepted. I'm not very knowledgeable about it.

If I were to use multiplications, I would have to create an infinite number of conditions (17*1, 17*2, 17*3, and so on). I was hoping there would be something easier to use, like the use of number sets. But I don't know much about it.