[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:

Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) WebCat, The Trend, & Consolidating... (1997) price carry over (1997) Sku numbers (1997) Review comparison by PC Magazine: Open for On-line Business (1997) OT: Web Cams (2003) New Media Careers -- Jobs! (1998) Re:no [search] with NT (1997) MacOS9 plugin 4.0.2b5 template security error (2000) SSL, WebSTAR, WebCatalog (1998) Help name our technology! (1997) Replace with Producteditor.tpl (2000) Sorting by number (2001) Parse question (2005) Erotic Sites (1997) I try hard to think positively (1998) psst (1997) # fields limited? (1997) Webcatalog 4.0 - When will we be able to beta test it? (2000) Multiple Ad databases? (1997)