Re: [ShowIf] if the varieable exists

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20286
interpreted = N
texte = >I understand that normally you would put the [ShowIf] context followed >by the equation. >ex: [ShowIf [wogroup1datarq]=Mustang]Car[/ShowIf] >However, there will not always be an existing variable called >[wogroup1datarq]. Instead, I would like to [ShowIf] if the variable >[wogroup1datarq] exists. How can I do this?If the wogroup1datarq variable doesn't exist, then its value will show up on the page as literally [wogroup1datarq] (brackets and all). So you want to test for that string like the following:[ShowIf [wogrpup1datarq]![raw][wogroup1datarq][/raw]]Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [ShowIf] if the varieable exists (Grant Hulbert 1998)
  2. Re: [ShowIf] if the varieable exists (Scott Szretter 1998)
  3. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  4. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  5. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  6. Re: [ShowIf] if the varieable exists (bob 1998)
  7. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  8. Re: [ShowIf] if the varieable exists (Christer Olsson 1998)
  9. Re: [ShowIf] if the varieable exists (PCS Technical Support 1998)
  10. [ShowIf] if the varieable exists (Mike Eberly 1998)
>I understand that normally you would put the [showif] context followed >by the equation. >ex: [ShowIf [wogroup1datarq]=Mustang]Car[/ShowIf] >However, there will not always be an existing variable called >[wogroup1datarq]. Instead, I would like to [showif] if the variable >[wogroup1datarq] exists. How can I do this?If the wogroup1datarq variable doesn't exist, then its value will show up on the page as literally [wogroup1datarq] (brackets and all). So you want to test for that string like the following:[ShowIf [wogrpup1datarq]![raw][wogroup1datarq][/raw]]Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

WebCatalog can't find database (1997) Need help with emailer- 2 issues (1997) CVS Files for databases (2000) Target wit redirect (1998) [encrypt] blues.... (2000) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) [BULK] [WebDNA] Authorize.net SIM, Server Integration Method (2011) [WebDNA] Competitors! (2008) OT: Textarea (2003) PROTECT PAGES (2002) ConvertChars - german umlauts (1998) Pass a form (2003) Version f1 status (1997) writing db to disk (1997) Help HTML reader (1999) Developer Links Exchange (2003) Re:Problem (1997) Search/sort in URL Was: GuestBook example (1997) Documentation Feedback (1997) Single Link browsing (1997)