[EpiData-list] Jumps in Epidata Entry

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Wed Jun 20 06:35:06 CDT 2007


if (v8 > 0 and v8<8) then
  goto v10
endif
(Check syntax differs from Analysis)

JH

> You can use a "IF... THEN..." syntax instead of "JUMP".
>
>
> For your examples:
>
> V8
>  AFTER ENTRY
>   IF (V8 > 0 AND V8 < 8) THEN GOTO V10
>  END
> END
>
>
> V5
>  AFTER ENTRY
>   IF V3 = 1 THEN GOTO V8
>  END
> END
>> 1) I want to jump to variable v10 if de score for v8 is 1 to 7. Of 
>> course this works:
>> v8
>>   RANGE 1 9
>>   COMMENT LEGAL USE oplcat
>>   JUMPS
>>     1 v10
>>     2 v10
>>     3 v10
>>     4 v10
>>     5 v10
>>     6 v10
>>     7 v10
>>   END
>>   MUSTENTER
>> END
>>
>>  Is a shorter syntax possible and if so, how?
>>
>>
>> 2) Is it possible to make a jump defination that depends on the value 
>> entered in a previous question?
>> For example:
>> After entering the value for variable v5 I want to jump to v8 if the 
>> answer on question v3=1.
>>
>> Kind Regards,
>> Pieter van Groenestijn
>> The Netherlands
>>
>>
>>
>>
>> _______________________________________________
>> EpiData-list mailing list
>> EpiData-list at lists.umanitoba.ca
>> http://lists.umanitoba.ca/mailman/listinfo/epidata-list
>>
>
> _______________________________________________
> EpiData-list mailing list
> EpiData-list at lists.umanitoba.ca
> http://lists.umanitoba.ca/mailman/listinfo/epidata-list
>
>



More information about the EpiData-list mailing list