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 upon the page as literally [wogroup1datarq] (brackets and all). So you wantto 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 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>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 upon the page as literally [wogroup1datarq] (brackets and all). So you wantto 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 | Typhoon619/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)