Page 1 of 1

var notappl

Posted: May 19th, 2014, 5:38 pm
by george
If I have var01, var02, var03, var04 and var05.
If var01=1 then skip var02, var03 and var04, skip to var05.
How do I get var02=888, var03=888 and var04=888 field automatically?
if I use 'SKIP' command this eliminate values​​, var02, var03 and var04.
The idea is not to leave any empty field if empty then it must have a value.
The survey is very large and has many variables, and omissions in many fields.
regards,

sorry my english.
I'm from Peru

Re: var notappl

Posted: May 20th, 2014, 8:21 am
by Gregory Martin
You could write:
if VAR01 = 1 then
    VAR02 =
888;
    VAR03 =
888;
    VAR04 =
888;
    
advance to VAR05;
endif;