0
$\begingroup$

I am executing the following in SPSS:

DO IF (A1=4).
COMPUTE (A1_COR=1).
ELSE IF (A1~=4).
COMPUTE (A1_COR=0).
END IF.
EXECUTE.

Can anyone see why I am receiving the, "An equals sign was not found when expected after the target variable" error?

$\endgroup$

1 Answer 1

1
$\begingroup$

It should looks like this:

DO IF (A1=4).
COMPUTE A1_COR=1.
ELSE.
COMPUTE A1_COR=0.
END IF.
EXECUTE.
$\endgroup$
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.