I've noticed frequently when coding SPSS that, if A B and C are variables, it won't allow me to code:
IF (A=(B | C)) DO SOMETHING...
Error # 4321 in column 60. Text: )
>One of the operands of a logical operator (AND, OR, and NOT) is neither a
>logical expression nor a logical function nor a logical variable.
>This command not executed.
Instead I have to code:
IF (A=B | A=C) DO SOMETHING...
Is there a way to code an equal to/or statement? It's not a large problem in the example above, but if a variable could be equal to 10 other variables, it becomes very complicated. Is there a way to cimplify this operation?