Re: Trying to evaluate data that is stored in an indexed

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34752
interpreted = N
texte = So, is what you have working, or not?What is it you'd like it to do that it's not doing?(It's unclear exactly what it is you're asking...) -- Will Starck NovaDerm Product and Technical Support http://www.novaderm.com techs@novaderm.com > From: Matthew Levy > Reply-To: (WebCatalog Talk) > Date: Sun, 16 Jul 2000 18:08:41 > To: (WebCatalog Talk) > Subject: Trying to evaluate data that is stored in an indexed variable... > > Hi, > > I want to be able to evaluate numbers (multiple) that are stored in a > variable. Let me explain: > I have a variable called download_[index] that stores user input (a > download_id of a program that the user has selected to download). The user > can select multiple items to download so there are several different numbers > that are stored in this index variable. And, oh yeah, the numbers are > separated by and &. Here is the snippet of code that I use to index items > selected by the user. > > [text multi=T][loop start=1&end=[search > db=/db/download.db&nedownload_iddata=[blank]][numfound][/search]] > download_[index]=&[/loop][/text] > > What I want to be able to do a bunch of tricks with these numbers, such as: > > If there is more than one number in the download_[index] where the first > three characters are equal to 101 than send out a general (e-mail > response). > > Or, if there is only one with a certain prefix, do something else. Here > is what I have currently...I am trying to write a loop that can go in and do > some of the things that I described above, I really want to know how I can > say if more than one value has a certain prefix, do task 1, and just > evaluate the remaining numbers in the found set. > > > [loop start=1&end=[search > db=/db/download.db&nedownload_iddata=[blank]][numfound][/search]] > [hideif =[interpret][download_[index]][/interpret]] > [showif [getchars > start=1&end=3][interpret][download_[index]][/interpret][/getchars]=101] > [sendmail to=[lookup > db=/db/session.db&value=[session_id]&lookinfield=session_id&returnfield= > user_email]&from=sales@aecsoft.com&subject=Thank you for your download] > [include file=/includes/messages/ftsgen.inc&raw=F] > [/sendmail] > [/showif] > [/hideif] > [/loop] > > > Your help is very much appreciated. > > Sincerely, > > > Matthew Levy > AEC Software, Inc > mlevy@aecsoft.com > > > P.S.: Yes, it is Sunday and I am work. Web is life. > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Trying to evaluate data that is stored in an indexed (Will Starck 2000)
  2. Re: Trying to evaluate data that is stored in an indexed variable... (John Butler 2000)
  3. Trying to evaluate data that is stored in an indexed variable... (Matthew Levy 2000)
So, is what you have working, or not?What is it you'd like it to do that it's not doing?(It's unclear exactly what it is you're asking...) -- Will Starck NovaDerm Product and Technical Support http://www.novaderm.com techs@novaderm.com > From: Matthew Levy > Reply-To: (WebCatalog Talk) > Date: Sun, 16 Jul 2000 18:08:41 > To: (WebCatalog Talk) > Subject: Trying to evaluate data that is stored in an indexed variable... > > Hi, > > I want to be able to evaluate numbers (multiple) that are stored in a > variable. Let me explain: > I have a variable called download_[index] that stores user input (a > download_id of a program that the user has selected to download). The user > can select multiple items to download so there are several different numbers > that are stored in this index variable. And, oh yeah, the numbers are > separated by and &. Here is the snippet of code that I use to index items > selected by the user. > > [text multi=T][loop start=1&end=[search > db=/db/download.db&nedownload_iddata=[blank]][numfound][/search]] > download_[index]=&[/loop][/text] > > What I want to be able to do a bunch of tricks with these numbers, such as: > > If there is more than one number in the download_[index] where the first > three characters are equal to 101 than send out a general (e-mail > response). > > Or, if there is only one with a certain prefix, do something else. Here > is what I have currently...I am trying to write a loop that can go in and do > some of the things that I described above, I really want to know how I can > say if more than one value has a certain prefix, do task 1, and just > evaluate the remaining numbers in the found set. > > > [loop start=1&end=[search > db=/db/download.db&nedownload_iddata=[blank]][numfound][/search]] > [hideif =[interpret][download_[index]][/interpret]] > [showif [getchars > start=1&end=3][interpret][download_[index]][/interpret][/getchars]=101] > [sendmail to=[lookup > db=/db/session.db&value=[session_id]&lookinfield=session_id&returnfield= > user_email]&from=sales@aecsoft.com&subject=Thank you for your download] > [include file=/includes/messages/ftsgen.inc&raw=F] > [/sendmail] > [/showif] > [/hideif] > [/loop] > > > Your help is very much appreciated. > > Sincerely, > > > Matthew Levy > AEC Software, Inc > mlevy@aecsoft.com > > > P.S.: Yes, it is Sunday and I am work. Web is life. > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Will Starck

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

textA (1998) Emailer port change (1997) What is your question??? (2003) Express Lane (2000) Webcat2, WebCommerce, Mod 10 etc. (1997) Document Contains No Data msg (1997) Caching [include] files ... (1997) Non-repeating Random Numbers - CORRECTION (2002) searchable list archive (1997) sorting and summarizing (1998) Document Contains No Data! (1997) [WebDNA] backup / mirror website & databases (2018) Thanks Grant (1997) Problems with [Applescript] (1997) WC1.6 to WC2 date formatting (1997) help! problem using [referrer] still in 2.01 (1997) Re[3]: 2nd WebCatalog2 Feature Request (1996) Pass a form (2003) PSC recommends what date format yr 2000??? (1997) Extended [ConvertChars] (1997)