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:

Cant get my own subtotal (2001) [delete] problem (1997) Calendar using WebCatalog? (1997) [OT] Robust order processing (2003) Carriage returns in [text] variables (1999) back button problem (1999) [WriteFile] problems (1997) Calendar (1997) Rhapsody? (1997) Order not created error (1997) Re[2]: Emailed problem (2000) Carrying over data? (1997) File Uploads... (1997) RAM variables (1997) Special delete ... (1997) WebCat NT v. Mac (1997) Cart doesn't interpret tag! (1997) Press Release hit the NewsWire!!! (1997) WebCatalog security on NT (2000) WebCat2 - Getting to the browser's username/password data (1997)