[EpiData-list] IF... THEN LEGAL

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Tue Aug 30 21:36:10 CDT 2011

IF...THEN with different COMMENT LEGAL blocks does work, as shown in the help file for EpiData Entry, but it isn't perfect. 
This does not work with just LEGAL.

If you have simple sets of legal values, use a series of IF ... THEN blocks as suggested by Suzanna


On 2011-08-30, at 5:08 PM, epidata-list at lists.umanitoba.ca wrote:

> I'm trying to combine IF... THEN with LEGAL but somehow I'm having problems
> with it. Basically, what I want to do is to determine valid values for one
> variable based on the answer given to another variable. In the example
> below, the two vars are stateid and countyid: If stateid = 1 then countyid
> could be 01 or 04; if stateid = 2 then countyid could be 02, 03 or 05.

More information about the EpiData-list mailing list