Multiple if any command in spss

spss

Is it possible to use Nested if any command in spss?
for example

 if any(1, a to c) and if (1, s to x) xx=1.

Best Answer

Sure, but your syntax isn't quite right. if (any(1, a to c) and any(1, s to x)) xx=1.

The if expression can be arbitrarily complicated, but it needs to be an expression. The if part is a statement.

HTH

Related Topic