I have two variables on the basis of which I want to create a variable that expresses whether the response of which colour was shown - by the participants - matched the colour actually shown in the experiment. So I want to use the compute variable dialog box, and the correctincorrect variable is supposed to show a 1 in the new variable for cases in which response and actual colour variable match, and a zero if not.

How would I specify 1) the numerical expression, and 2) the if dialog box ? I cannot include the IF function in the numerical expression box.

Similar questions and discussions