To convert an array to a string you can use the <@var> tag. <@var yourArray aprefix='' asuffix='' rprefix='' rsuffix='' cprefix='' csuffix=''> This will append all the values together in one string.
To check if a value is in the array use <@if expr="@@yourArray contains @@yourString"> The contains operator acting on an array does an = on each element in the array, so if any element in the array matches your string exactly then the expression is true. Dave Shelley [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Wilcox, Jamileh Sent: Tuesday, December 03, 2002 4:44 PM To: Multiple recipients of list witango-talk Subject: Witango-Talk: RE: Array to String Or, alternatively, is there a way to see if something is in an array, without having to loop through the rows? > -----Original Message----- > From: Wilcox, Jamileh > Sent: Tuesday, December 03, 2002 3:41 PM > To: 'Witango-Talk' > Subject: Array to String > > Is there anything in Witango that acts like the Javascript > JOIN method (i.e., just converts an array to a delimited > string)? It sure would make life easier sometimes. > > Thanks. j ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
