> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Olin Lathrop > Sent: 08 October 2008 14:17 > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] Is there a IN statement > > Grant Brown wrote: > > if (a in [a,b,c,d]) then .... > > > > in other word I can test to see if a given variable is in a > > particular set > > > > How do i do this in "C" ? > > You don't directly. You've found reason #37 of about 98 why C sucks. > And reason #177654 of why assembly sucks? Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist