Boolean branch logic? | XM Community
Skip to main content
Solved

Boolean branch logic?

  • June 11, 2019
  • 1 reply
  • 46 views

Hi, I am having a slight issue with my survey. I want to use three conditions to allow participants to proceed with a part of the survey otherwise they will see an end screen. I have found that someone has been able to advance without meeting all of my criteria. _What I want is:_ Condition 1 Years as a footballer must be greater than 3 years and Condition 2 Years as a defender must be greater than 3 years or Years as a midfielder must be greater than 3 years or Years as a striker must be greater than 3 years Condition 3 and Level of training received must be youth, academy, u21 or first team _What I have is:_ Branch to end screen "If If How many years experience do you have ... Years experience working as footballer Is Less Than 3 Edit Condition Or If Years as defender Is Less Than 3 Edit Condition And Years as midfielder Is Less Than 3 Edit Condition And Years as striker Is Less Than 3 Edit Condition Or If What level of Level of training have you obtained ... None Is Selected Edit Condition Someone has been able to advance with the study with 3 years as a footballer, u21 training but only 1 year as a midfielder? Do I need to change both Or to Ands? I think the reversal of the logic from must be greater to is less than is confusing me. Thanks,

Best answer by Akdashboard

I would set the logic as I have laid out in my picture. Notice that they are separated by "And if" statements. Technically you don't need the embedded data "validation = passed", but I add extra bits like that to streamline future logic. !

1 reply

Akdashboard
Level 4 ●●●●
Forum|alt.badge.img+6
  • Level 4 ●●●●
  • 488 replies
  • Answer
  • June 11, 2019
I would set the logic as I have laid out in my picture. Notice that they are separated by "And if" statements. Technically you don't need the embedded data "validation = passed", but I add extra bits like that to streamline future logic. !