I am a bit stuck at this logic.
I am doing a research but based on the expression below, I want question variable D7_1 to be only applicable to enter record if any one of the other 4 previous entry in question variable D6_1, D6_2, D6_3 and D6_4 is equal to the response 10 in the choices list
if D6_1 = 10 then
skip to D7_1;
elseif D6_2 = 10 then
skip D7_1;
elseif D6_3 = 10 then
skip D7_1;
elseif D6_4 = 10 then
skip D7_1;
endif;
Automatic Skip problem
-
- Posts: 49
- Joined: October 15th, 2020, 3:40 am
Re: Automatic Skip problem
Please try this:
PROC D7_1
preproc
ask if D6_1= 10 or D6_2= 10 or D6_3= 10 or D6_4= 10;
PROC D7_1
preproc
ask if D6_1= 10 or D6_2= 10 or D6_3= 10 or D6_4= 10;
Re: Automatic Skip problem
Many thanks. This works