[WebDNA] [listwords] and [index]

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103189
interpreted = N
texte = I indicate if an item has reviews at a review site this way in a db: +rsite1+rsite4+rsite5+rsite7+ I want to show one text string if the field contains 1 or 2 entries, and a different text string if it contains 3 or more entries. Can I use [listwords] with [index] ??? I've been trying this and variations of it but no real success so far: [listwords words=[reviewsites]&delimiters=+] [showif [index]<=[math]2[/math]]one text line[/showif] [showif [index]>=[math]3[/math]]another text line[/showif] [/listwords] I'm thinking it's because [index] just counts the lines?? I thought [countwords] could do the trick but I always get "1" as a result: [CountWords Delimiters=+][reviewsites][/CountWords] Is "+" not an accepted Delimiter in Countwords? Using vers 6 on IIS Thanks H-O-T one in Chicago today! Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [listwords] and [index] (John Butler 2009)
  2. Re: Re: [WebDNA] [listwords] and [index] ( 2009)
  3. Re: [WebDNA] [listwords] and [index] ( 2009)
  4. [WebDNA] [listwords] and [index] (Rich Kwas 2009)
I indicate if an item has reviews at a review site this way in a db: +rsite1+rsite4+rsite5+rsite7+ I want to show one text string if the field contains 1 or 2 entries, and a different text string if it contains 3 or more entries. Can I use [listwords] with [index] ??? I've been trying this and variations of it but no real success so far: [listwords words=[reviewsites]&delimiters=+] [showif [index]<=[math]2[/math]]one text line[/showif] [showif [index]>=[math]3[/math]]another text line[/showif] [/listwords] I'm thinking it's because [index] just counts the lines?? I thought [countwords] could do the trick but I always get "1" as a result: [CountWords Delimiters=+][reviewsites][/CountWords] Is "+" not an accepted Delimiter in Countwords? Using vers 6 on IIS Thanks H-O-T one in Chicago today! Rich Kwas

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:

[WC 2.1.30] Stack overflow. (2000) [TaxableTotal] - not working with AOL and IE (1997) Email within tmpl ? (1997) WebDNA on Intel Mac? (2006) WebCatalog Upgrade Pricing? (1997) WebCat2b13MacPlugIn - [include] (1997) Pref settings? (1998) How to search for fields with 10 or more characters? (2004) WebCat2: multiple currency support (1997) Question from a Neebie (2000) writing cart to db (1998) More on the email templates (1997) Exact word search - continued (1998) Out of the woodwork (2007) OT - ImageMagick on MacOS X (2004) Emailer setup (1997) Card clearance, problems - solutions? (1997) Two submit buttons ? (1997) RE: WebCat: Access denied, but why? (1997) Browser Problem?!? Still getting Error message using POST! (1997)