Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Exclude None-Field-Clicker

Hello,

How can I exclude survey participants who only click the none-field in my cbc  with a skip-logic?

Thanks for help!
asked 4 days ago by anonymous

1 Answer

0 votes
This skip logic should fire if and only if the respondent answered "None" for all tasks of a CBC exercise:

Begin Unverified Perl
# Parameters
my $exerciseName = 'cbc';
my $randomTasks = 8;
my $fixedTasks = 0;
my $noneConcept = 4;

# Run
for (my $i = 1; $i <= $randomTasks; $i++) {
    if (GETVALUE($exerciseName . '_Random' . $i) != $noneConcept) {
        return 0;
    }
}

for (my $i = 1; $i <= $fixedTasks; $i++) {
    if (GETVALUE($exerciseName . '_Fixed' . $i) != $noneConcept) {
        return 0;
    }
}

return 1;
End Unverified


Line 3 must be updated with the name of the exercise.  Lines 4 and 5 must be updated with the number of random and fixed tasks in the exercise.  Line 6 must be updated with the position of the none concept in each task.
answered 4 days ago by Zachary Platinum Sawtooth Software, Inc. (129,150 points)
...