Boolean branch logic? | XM Community
Solved

Boolean branch logic?

  • 11 June 2019
  • 1 reply
  • 14 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,
icon

Best answer by Akdashboard 11 June 2019, 22:21

View original

1 reply

Userlevel 7
Badge +6
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.

!

Leave a Reply