Creating a new variable in SPSS with a list of conditions.

I want to create a new variable in SPSS without using syntax. The variable has a few conditions that apply.
I have selected Transform > Compute Variable and then typed in succeed_fail into the Target Variable field and 0 into the Numeric Expression field.
I have clicked the If button and the if condition satisfies condition. Here is what I would like to execute:
((s1result = 0) & (s3result = 0))
((s2result = 0) & (s3result = 0))
((cj1_result = 0) & ((cj3_result = 0)
((cj2_result = 0) & (cj3_result = 0))
((s1result = 0) & (s2result = 0) & (s3result = 0))
((cj1_result = 0) & (cj2_result = 0) & (cj3_result = 0))

I’m not sure if I need to put something between all of these conditions or not. I did it for the very first condition and it worked where when ((s1result = 0) & (s3result = 0)) succeed_fail = 0, but it didn’t work for the rest. How can I accomplish this?

Related:

Leave a Reply