[EpiData-list] cannot read local sign in EpiData Entry classic 3.1 (if formulation)

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Thu Jan 8 03:29:35 CST 2015


epidata-list at lists.umanitoba.ca suggestion to "try this":

> FIELD1
> BEFORE ENTRY
> IF (oeoe="湖") THEN
> GOTO FIELD2
> ENDIF
> END
> END‍
> ------------------
> ------------------
> is a very good general advice in all situations where we apply if .

The suggestion was to change:
from: IF oeoe="湖" THEN
to : IF (oeoe="湖") THEN

This is also relevant for analysis. Good practice is therefore in all situations with "if" regardless of software:

do not write like this: if v1 = 1 or v2 = 2 then v3 = 2
which is "unsafe" practice in comparison to:

if (v1 = 1) or (v2 = 2) then v3 = 2

or even further enclosing in parenthesis:

if ((v1 = 1) or (v2 = 2)) then v3 = 2

regards Jens Lauritsen
EpiData Association




More information about the EpiData-list mailing list