Re: Showif = stumped?
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36762
interpreted = N
texte = At 1:52 PM 06/27/2001, Jeff Logan wrote:>I can not figure out why the code below will not show the following >tags [tollfree], [phone], and [fax] when showif's are around it. I >remove the showif's and the items show up fine? Any ideas?>>Jeff Logan>>[showif [address]>0][address],[/showif] [showif >[city]>0][city],[/showif] [showif [state]>0][state][/showif] [showif >[zip]>0][zip][/showif]
>[showif [tollfree]>0]TollFree: [tollfree]
[/showif]>[showif [phone]>0]Phone: [phone]
[/showif]>[showif [fax]>0]Fax: [fax]
[/showif]It really depends on that the values of tollfree, fax, and phone are. If they're of the form (212) 555-5555, the [SHOWIF] fails because of the parentheses around the area code. You'll probably need to strip out all non-numeric characters using a [listwords].Also, you should definitely [URL] all your [showif]s, just to be safe.Michael-------------------------------------------------------------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:
At 1:52 PM 06/27/2001, Jeff Logan wrote:>I can not figure out why the code below will not show the following >tags [tollfree], [phone], and [fax] when showif's are around it. I >remove the showif's and the items show up fine? Any ideas?>>Jeff Logan>>[showif [address]>0][address],[/showif] [showif >[city]>0][city],[/showif] [showif [state]>0][state][/showif] [showif >[zip]>0][zip][/showif]
>[showif [tollfree]>0]TollFree: [tollfree]
[/showif]>[showif [phone]>0]Phone: [phone]
[/showif]>[showif [fax]>0]Fax: [fax]
[/showif]It really depends on that the values of tollfree, fax, and phone are. If they're of the form (212) 555-5555, the [showif] fails because of the parentheses around the area code. You'll probably need to strip out all non-numeric characters using a [listwords].Also, you should definitely [url] all your [showif]s, just to be safe.Michael-------------------------------------------------------------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/
Michael Winston
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:
emailer settings and control questions (1997)
showif and cart (1997)
Search multiple fields (1997)
F3 crashing server (1997)
WebCatalog f2 Installation (1997)
ShipCosts database (1997)
errors 550, and 108 (1998)
Snake Bites (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
[isfile] ? (1997)
FEW QUESTIONS (1997)
Can a database get stomped by simultaneous access? (1997)
Searchable WebCat (etc.) Docs ? (1997)
requiredfields (2002)
RedHat Linux glibc version 2.1.2 or higher required (2000)
Need help with emailer- 2 issues (1997)
[WebDNA] mail header timezone problem (2008)
searchable list archive (1997)
More on the email templates (1997)
problems with 2 tags (1997)