It's a boolean evaluation; returns 0 if false and 1 if true. Here 1 if y = z, else 0 (or sysmis if args missing).
data list free /y z.
begin data.
1 2
1 1
end data.
compute x = y = z.
list.
I'll look in the Command Syntax Reference in a couple of places and see if that's mentioned.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
------------------------------
Original Message:
Sent: Tue April 13, 2021 11:13 AM
From: Scott Terry
Subject: COMPUTE Syntax Containing Two "Equals" Signs
Hi. Long time SPSS Statistics user with a bit of a strange question.
Recently, I ran across a web page that contained an example showing a "COMPUTE" statement that contained two equals signs. It was something like "COMPUTE x = y = z". This was new to me however, I was in a rush so didn't mentally land on it. Coming back to it now and I can't seem to find any reference to the hows/whys of this application in any of my SPSS documentation nor on the web.
Can somebody point me to information on what this COMPUTE format means?
Thanks in advance.
------------------------------
Scott Terry
------------------------------
#SPSSStatistics