Re: Is there an easier way?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 21403
interpreted = N
texte = You can get rid of all those [hideif] contexts, because [S_NAME] can have only one value, so all you need are the [showif]s ... :)>I am using this code here and was wondering if there was an easier way to>accomplish the same thing. I would realy like to so something like this:>>[if [S_NAME]=ListHome]

[else]
![]()
src=someimage.gif>[/if]>>>this is what I do have though...>>>

border=0>
>[hideif [S_NAME]=ListHome]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=ListHome]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=SearchHomes]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=SearchHomes]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=NewHomeComm]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=NewHomeComm]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomePlans]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=Mortgages]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeEqLoan]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeEqLoan]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeIns]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeIns]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeWrnty]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeWrnty]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=TitleIns]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=TitleIns]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=FindContr]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=FindContr]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CreditRep]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CreditRep]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CompHome]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CompHome]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=RealEstateNews]
![]()
src=images/l_nav_realestate_off.gif width=132 height=13>border=0>
[/hideif]>[showif [S_NAME]=RealEstateNews]
![]()
src=images/l_nav_realestate_off.gif width=132 height=13>border=0>
[/showif]>[hideif [S_NAME]=OtherServ]

width=132 height=13 border=0>[/hideif]>[showif [S_NAME]=OtherServ]

width=132 height=13 border=0>[/showif]>>>_______________________________________________________________>Charles Kline ckline@macsultants.com>>>MacSultants>Professional Solutions for Computer Systems>>Phone# 609-273-3255>Fax# 609-273-3721Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
You can get rid of all those
[hideif] contexts, because [S_NAME] can have only one value, so all you need are the
[showif]s ... :)>I am using this code here and was wondering if there was an easier way to>accomplish the same thing. I would realy like to so something like this:>>[if [S_NAME]=ListHome]

[else]
![]()
src=someimage.gif>[/if]>>>this is what I do have though...>>>

border=0>
>[hideif [S_NAME]=ListHome]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=ListHome]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=SearchHomes]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=SearchHomes]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=NewHomeComm]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=NewHomeComm]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomePlans]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=Mortgages]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeEqLoan]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeEqLoan]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeIns]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeIns]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeWrnty]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeWrnty]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=TitleIns]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=TitleIns]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=FindContr]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=FindContr]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CreditRep]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CreditRep]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CompHome]

width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CompHome]

width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=RealEstateNews]
![]()
src=images/l_nav_realestate_off.gif width=132 height=13>border=0>
[/hideif]>[showif [S_NAME]=RealEstateNews]
![]()
src=images/l_nav_realestate_off.gif width=132 height=13>border=0>
[/showif]>[hideif [S_NAME]=OtherServ]

width=132 height=13 border=0>[/hideif]>[showif [S_NAME]=OtherServ]

width=132 height=13 border=0>[/showif]>>>_______________________________________________________________>Charles Kline ckline@macsultants.com>>>MacSultants>Professional Solutions for Computer Systems>>Phone# 609-273-3255>Fax# 609-273-3721Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Kenneth Grome
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:
Windows-based Code Editor (2002)
WebCatalog can't find database (1997)
Expiration of Carts (1997)
Indexing Web sites? (2000)
why won't this work, please tell me??? (2001)
Pithy questions on webcommerce & siteedit (1997)
duplicate cart numbers - New P3P Rule (2002)
two questions (1997)
[WebDNA] Using WebDNA with MAMP (2010)
Protecting webdelivery (1997)
Another question about credit cards (1997)
Some Questions (1997)
SMSI -- a [notfound] context? (2002)
[WebDNA] OT: length of an HTML form input's 'name' parameter? (2010)
AppleScript question (1997)
b12 cannot limit records returned and more. (1997)
Frames and WebCat (1997)
Displaying photo attached to first record (1997)
[WebDNA] Internal [ipaddress] ? (2009)
Special search (1998)