Re: Showif = stumped?
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36766
interpreted = N
texte = To everyone thanks for the help.Jeff Logan>You are making a comparison that cannot be true so the showif cannot>return a true result because (assuming the variables are text variables)>the text comparison to a number is not valid. If you are trying to detect>a non-blank variable, use [hideif [var]=] or [showif [var]!].>>---- Jeff Logan
wrote:>> So like this?>>>> [showif [url][tollfree][/url]>0]TollFree: [tollfree]
[/showif]>> [showif [url][phone][/url]>0]Phone: [phone]
[/showif]>> [showif [url][fax][/url]>0]Fax: [fax]
[/showif]>>>> Still does not work? Any other ideas.>>>> Jeff Logan>>>>>>>> >instead of [showif [variable]>0]>> >you should use [hideif [url][variable][url]=]>> >or you can use [showif [url][variable][/url]!]>> >>> >Anup>> >>> >----- Original Message ----->> >From: Jeff Logan >> >To: WebCatalog Talk >> >Sent: Wednesday, June 27, 2001 4:52 PM>> >Subject: Showif = stumped?>> >>> >> 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]>> >>>> >> ------------------------------------------------------------->> >> 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/>> >>> >------------------------------------------------------------->> >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/>>>>>> ------------------------------------------------------------->> 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/>>>>__________________________________________________>FREE voicemail, email, and fax...all in one place.>Sign Up Now! http://www.onebox.com>>------------------------------------------------------------->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/-------------------------------------------------------------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:
To everyone thanks for the help.Jeff Logan>You are making a comparison that cannot be true so the showif cannot>return a true result because (assuming the variables are text variables)>the text comparison to a number is not valid. If you are trying to detect>a non-blank variable, use [hideif [var]=] or [showif [var]!].>>---- Jeff Logan wrote:>> So like this?>>>> [showif [url][tollfree][/url]>0]TollFree: [tollfree]
[/showif]>> [showif [url][phone][/url]>0]Phone: [phone]
[/showif]>> [showif [url][fax][/url]>0]Fax: [fax]
[/showif]>>>> Still does not work? Any other ideas.>>>> Jeff Logan>>>>>>>> >instead of [showif [variable]>0]>> >you should use [hideif [url][variable][url]=]>> >or you can use [showif [url][variable][/url]!]>> >>> >Anup>> >>> >----- Original Message ----->> >From: Jeff Logan >> >To: WebCatalog Talk >> >Sent: Wednesday, June 27, 2001 4:52 PM>> >Subject: Showif = stumped?>> >>> >> 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]>> >>>> >> ------------------------------------------------------------->> >> 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/>> >>> >------------------------------------------------------------->> >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/>>>>>> ------------------------------------------------------------->> 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/>>>>__________________________________________________>FREE voicemail, email, and fax...all in one place.>Sign Up Now! http://www.onebox.com>>------------------------------------------------------------->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/-------------------------------------------------------------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/
Jeff Logan
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:
Updating a database once per day - An example (1998)
return missing item (was:WebCat Sales) (1997)
Bug? (1997)
Add more fields to an existent data base (1997)
Ken's Data Manager (finally available I think ...) (2005)
Quick Replace Question (2003)
[offtopic]P1: How to make webcatalog more stable. - LONG (1999)
WebCat and WebTV (1997)
OPEN MARKET PATENTS SOUND ECOMMERCE ALARM (1998)
Instructions for Digest (1997)
[WriteFile] problems (1997)
Updating a database once per day - An example (1998)
Country & Ship-to address & other fields ? (1997)
Help with Repost Data msg from form (1997)
limitation found on group searching (1997)
Search in 2 or more catalogs (1997)
Looking up two prices in database? (1997)
Re:WebCatalog f2 Installation (1997)
Unexpected error (1997)
Re:quit command on NT (1997)