&& and 'and' have different precendence that's the only difference, but in your case it doesn't matter.
what exactly are you trying to do? Your code reads if @dates has data and the other two BOTH do not have data then do somthing with @dates else if the above is false and @dates has no data and @themes does have data AND @cities doesn't have data then do something with themes. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 28, 2002 9:45 AM > To: [EMAIL PROTECTED] > Subject: && > > > Hi all, > > > I have some arrays and like to trigger some events depending on which > array or combination of arrays contains data. What I tried was > something like: > snippet > > > if(@dates && !@themes && !@cities) { > > > #do something with the data in @dates > > > } > elsif(!@dates && @themes && !@cities) { > #do somthing with @themes > } > ... > Alas! I doesn't work. Using "and" instead of "&&" doesn't help either. > Or do I have to use "&" instead. Although it doesn't work either. > instead > > Can someone help?? > Thanks > > > > Marcus Willemsen > Online Redaktion > Juve Verlag > Agrippastr. 10 > 50676 Köln > > > tel: ++49(0)221 91 38 80 16 > fax: ++49(0)221 91 38 80 18 > www.juve.de > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]