Date: Wed, 31 Oct 2001 12:42:47 -0500
Reply-To: Herbert Root <hdr@monumental.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Herbert Root <hdr@MONUMENTAL.COM>
Subject: Re: "in"
In-Reply-To: <714D7E686BC9D311BB2000508B8BFE5E9BB6C0@ELEMENTNT02>
Content-Type: multipart/alternative;
This should work for you:
ANY(test,value[,value,...]) Logical. Returns 1 or true if the value of
test matches any of the subsequent values; returns 0 or false
otherwise. This function requires two or more arguments.
--Original Message Text---
From: Josh Wenk
Date: Wed, 31 Oct 2001 12:04:55 -0500
Normal 0 DocumentEmail
Is there a command in spss that allows you to do an OR check on values?
In SQL, it s like
If (variable IN (val1, val2,val3))
That s a lot easier than doing if (var=val1 | var=val2 | var=val3)
Thanks!
--
Herbert Root, Supervisor
Office of Research
Loudoun County Public Schools
Leesburg, Virginia, USA
[text/html]
|