How to create nested logic (like Qualtrics) | Community
Skip to main content
Answered

How to create nested logic (like Qualtrics)

  • December 28, 2021
  • 1 reply
  • 115 views

Hi! I’m new to Typeform and trying to use a logic structure that I’m used to using in Qualtrics but can’t quite figure out in Typeform. 

I need to create a chain of if-then logic statements joined by ‘and’ or ‘or’ logic functions. In other words, I need to nest logic statements within logic statements.

For Example:

IF (
(answer to Q1 is X) 
AND 
(IF answer to Q2 is Y) 
OR (answer to Q2 is Z)
)

OR 

IF (
(answer to Q3 is A) 
OR (answer to Q3 is B)
)

THEN (Show ending #4)

 

Could anyone explain how this is done in Typeform (or confirm that it is not possible)? Thank you!

​​

Best answer by Liz

Hi @kaseyklimes Welcome to the community! Happy to have you here. :grinning:

I would first suggest checking out our article here on ordering logic. This should be possible, but you’ll want to be sure you’re ordering the logic correctly so that it catches the statements in the order you referenced above. 

Since we don’t exactly have an option to put in something exactly like this: 

 

IF ( (answer to Q1 is X) AND (IF answer to Q2 is Y) OR (answer to Q2 is Z) )

You would instead need to setup a logic something like this: 

Hopefully this helps get you started!

View original

1 reply

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14905 replies
  • Answer
  • December 28, 2021

Hi @kaseyklimes Welcome to the community! Happy to have you here. :grinning:

I would first suggest checking out our article here on ordering logic. This should be possible, but you’ll want to be sure you’re ordering the logic correctly so that it catches the statements in the order you referenced above. 

Since we don’t exactly have an option to put in something exactly like this: 

 

IF ( (answer to Q1 is X) AND (IF answer to Q2 is Y) OR (answer to Q2 is Z) )

You would instead need to setup a logic something like this: 

Hopefully this helps get you started!


Reply