LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2001)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 31 Oct 2001 12:42:47 -0500
Reply-To:   Herbert Root <>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   Herbert Root <hdr@MONUMENTAL.COM>
Subject:   Re: "in"
Comments:   To: Josh Wenk <jwenk@ELEMENTUSA.COM>
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)


-- Herbert Root, Supervisor Office of Research Loudoun County Public Schools Leesburg, Virginia, USA


Back to: Top of message | Previous page | Main SPSSX-L page