spss中有多个if命令

Ram*_*thy 1 spss

是否可以在spss中使用Nested如果有任何命令?例如

 if any(1, a to c) and if (1, s to x) xx=1.
Run Code Online (Sandbox Code Playgroud)

小智 5

当然,但你的语法不太正确.if(any(1,a到c)和any(1,s到x))xx = 1.

if表达式可以任意复杂,但它需要是一个表达式.if部分是一个声明.

HTH