What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: [WebDNA] [listwords] and [index]

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103192
interpreted = N
texte = Rich Kwas wrote: > 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?? [text]tCount=0[/text] [listwords words=[reviewsites]&delimiters=+] [text]tcount=[math][tCount]+1[/math][/text] [/listwords] [showif [tcount]<3] something [/showif] [showif [tcount]>2] something else [/showif] > 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? For countwords... http://docs.webdna.us/ Donovan -- Donovan Brooke WebDNA Software Corporation http://www.webdna.us **[Square Bracket Utopia]** Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [listwords] and [index] (Rich Kwas 2009)
  2. Re: [WebDNA] [listwords] and [index] (John Butler 2009)
  3. Re: [WebDNA] [listwords] and [index] (Donovan Brooke 2009)
  4. Re: [WebDNA] [listwords] and [index] (Donovan Brooke 2009)
  5. Re: Re: [WebDNA] [listwords] and [index] ( 2009)
  6. Re: [WebDNA] [listwords] and [index] ( 2009)
  7. [WebDNA] [listwords] and [index] (Rich Kwas 2009)
Rich Kwas wrote: > 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?? [text]tCount=0[/text] [listwords words=[reviewsites]&delimiters=+] [text]tcount=[math][tCount]+1[/math][/text] [/listwords] [showif [tcount]<3] something [/showif] [showif [tcount]>2] something else [/showif] > 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? For countwords... http://docs.webdna.us/ Donovan -- Donovan Brooke WebDNA Software Corporation http://www.webdna.us **[Square Bracket Utopia]** Donovan Brooke

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:

[WebDNA] [OT] Need to add second SSL host - what are my options? (2010) More! on [ShowCart] and GET vs. POST (1997) WebDNA tags in WebMerchant email templates ... (1997) Need help... (1997) 2.0 Info (1997) Multiple Pulldowns (1997) Multiple prices (1997) Opinion: [input] should be called [output] ... (1997) Download URL & access on the fly ? (1997) Questions. (1998) search form problem.. (1997) read and write you own cookies with webcat (1997) WCS Newbie question (1997) Accented chars and emailer (1998) [OT] Airport Problem (2003) Classifieds (2000) OT: automating a POST (2002) Emailer in the Process Viewer, under MacOS X (2002) consolidating orders (2000) WebCat2b13MacPlugIn - [showif][search][/showif] (1997)