Re: Multiple Hideif peramiters

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38903
interpreted = N
texte = The trick here is to do the multiple item list first then use a contains operator...[hideif _1_2_5.7_^_[variable]_]Notice also the use of the delimiter character - I used _ in the example but you can use any character you want that won't mess up the context (e.g. don't use = or any other comparison operator).The purpose of using the delimiters is so you can avoid matching on a partial string - such as if [variable] had a value of 7 -- the source string contains a 7, but the comparison will be for _7_ which it does not contain, while testing for _5.7_ will result in a match.- brianAt 1:06 PM 9/25/2001, Donovan Brooke wrote: >is this valid context? > >[hideif [variable]=1,2,5.7][/hideif] > >meaning it will hide the enclosed if the variable matches any of the >above numbers.. > >thanx very much. > > >-- Donovan D. Brooke------------------------------------------------------------- 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: Multiple Hideif peramiters (Donovan Brooke 2001)
  2. Re: Multiple Hideif peramiters (Clint Davis 2001)
  3. Re: Multiple Hideif peramiters (Donovan Brooke 2001)
  4. Re: Multiple Hideif peramiters (Samuel Renkert 2001)
  5. Re: Multiple Hideif peramiters (Brian Fries 2001)
  6. Re: Multiple Hideif peramiters (John Peacock 2001)
  7. Re: Multiple Hideif peramiters (Samuel Renkert 2001)
  8. Re: Multiple Hideif peramiters (Glenn Busbin 2001)
  9. Multiple Hideif peramiters (Donovan Brooke 2001)
The trick here is to do the multiple item list first then use a contains operator...[hideif _1_2_5.7_^_[variable]_]Notice also the use of the delimiter character - I used _ in the example but you can use any character you want that won't mess up the context (e.g. don't use = or any other comparison operator).The purpose of using the delimiters is so you can avoid matching on a partial string - such as if [variable] had a value of 7 -- the source string contains a 7, but the comparison will be for _7_ which it does not contain, while testing for _5.7_ will result in a match.- brianAt 1:06 PM 9/25/2001, Donovan Brooke wrote: >is this valid context? > >[hideif [variable]=1,2,5.7][/hideif] > >meaning it will hide the enclosed if the variable matches any of the >above numbers.. > >thanx very much. > > >-- Donovan D. Brooke------------------------------------------------------------- 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/ Brian Fries

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 and Title? (1997) [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (2012) passing user info on each page (2000) Sort Order on a page search (1997) RE: [WebDNA] smtp authentication (2008) Now, Now (2000) Deleting Orders (1998) Showing specific [cart] contents (1998) date sorting and 'template (1997) OT New use for WebCat (1998) 5.0 feature request: Multiple Server Support (2001) This Code Kills My WebCatalog Dead (2003) Error 551 in Emailer (2000) AddLineItem Problem (1997) Country & Ship-to address & other fields ? (1997) Avery 5160 Mailing Labels (2003) expired beta (1997) WebCat2 several catalogs? (1997) [WebDNA] Digest from talk@webdna.us (2008) Anybody running directory indexer? (1998)