Page 1 of 1

Automatic Skip problem

Posted: July 31st, 2023, 10:33 pm
by realturay
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;

Re: Automatic Skip problem

Posted: August 1st, 2023, 2:01 am
by Arjun Brti
Please try this:

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

Posted: August 1st, 2023, 9:22 pm
by realturay
Many thanks. This works