Re: how to check for no value while using [URL] to prevent cr
This WebDNA talk-list message is from
1999
It keeps the original formatting.
numero = 25517
interpreted = N
texte = The only time that WebCatalog will return the field name instead of the contentsis if the field has never been used before. The best way to fix this is topre-assign a value to that field. Like so (with WebCat 3.x only):[Text]Subscriber=Friend[/Text]...[!] some time later [/!]...[!] next page [!]Dear [Subscriber], Blah, blah, blahBy preassigning a value, you will ensure that any test can be forced to succeedor fail at will.HTHJohn Peacock____________________Reply Separator____________________Subject: how to check for no value while using [URL] to prevent crashAuthor: (WebCatalog Talk)Date: 12/15/99 4:44 PMwhat is the proper way to check for a container with no value?I have a form one can use to subscribe to an ezine. If they (optionally) inputtheir namethen I want to address them by name (this feature is working),but if they do not input their name (only their email address), then I want toaddressthem as friend (this is attempted - and not working - by the followingcomparison)-Dear... [showif[URL][SubsciberName][/URL]=[URL][RAW][SubsciberName][/RAW][/URL]]friend,[/showif]The browser returns Dear (the showif is evaluating as false even when theconatinercomes in with no value.?-John-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Associated Messages, from the most recent to the oldest:
The only time that WebCatalog will return the field name instead of the contentsis if the field has never been used before. The best way to fix this is topre-assign a value to that field. Like so (with WebCat 3.x only):[text]Subscriber=Friend[/Text]...[!] some time later [/!]...[!] next page [!]Dear [Subscriber], Blah, blah, blahBy preassigning a value, you will ensure that any test can be forced to succeedor fail at will.HTHJohn Peacock____________________Reply Separator____________________Subject: how to check for no value while using [url] to prevent crashAuthor: (WebCatalog Talk)Date: 12/15/99 4:44 PMwhat is the proper way to check for a container with no value?I have a form one can use to subscribe to an ezine. If they (optionally) inputtheir namethen I want to address them by name (this feature is working),but if they do not input their name (only their email address), then I want toaddressthem as friend (this is attempted - and not working - by the followingcomparison)-Dear... [showif[url][SubsciberName][/URL]=[url][raw][SubsciberName][/RAW][/URL]]friend,[/showif]The browser returns Dear (the showif is evaluating as false even when theconatinercomes in with no value.?-John-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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 jpeacock@univpress.com
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...