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]
![](someimage.gif)
[else]
![]()
src=someimage.gif>[/if]>>>this is what I do have though...>>>
![](images/l_nav_down_arrow.gif)
border=0>
>[hideif [S_NAME]=ListHome]
![](images/l_nav_listhome_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=ListHome]
![](images/l_nav_listhome_on.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=SearchHomes]
![](images/l_nav_search_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=SearchHomes]
![](images/l_nav_search_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=NewHomeComm]
![](images/l_nav_nhcomm_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=NewHomeComm]
![](images/l_nav_nhcomm_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomePlans]
![](images/l_nav_houseplans_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=Mortgages]
![](images/l_nav_mortages_on.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeEqLoan]
![](images/l_nav_homeequity_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeEqLoan]
![](images/l_nav_homeequity_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeIns]
![](images/l_nav_homeins_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeIns]
![](images/l_nav_homeins_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeWrnty]
![](images/l_nav_homewrnty_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeWrnty]
![](images/l_nav_homewrnty_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=TitleIns]
![](images/l_nav_titleins_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=TitleIns]
![](images/l_nav_titleins_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=FindContr]
![](images/l_nav_findcontr_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=FindContr]
![](images/l_nav_findcontr_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CreditRep]
![](images/l_nav_creditrep_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CreditRep]
![](images/l_nav_creditrep_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CompHome]
![](images/l_nav_comphome_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CompHome]
![](images/l_nav_comphome_off.gif
)
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]
![](images/l_nav_otherserv_off.gif
)
width=132 height=13 border=0>[/hideif]>[showif [S_NAME]=OtherServ]
![](images/l_nav_otherserv_off.gif
)
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]
![](someimage.gif)
[else]
![]()
src=someimage.gif>[/if]>>>this is what I do have though...>>>
![](images/l_nav_down_arrow.gif)
border=0>
>[hideif [S_NAME]=ListHome]
![](images/l_nav_listhome_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=ListHome]
![](images/l_nav_listhome_on.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=SearchHomes]
![](images/l_nav_search_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=SearchHomes]
![](images/l_nav_search_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=NewHomeComm]
![](images/l_nav_nhcomm_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=NewHomeComm]
![](images/l_nav_nhcomm_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomePlans]
![](images/l_nav_houseplans_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=Mortgages]
![](images/l_nav_mortages_on.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeEqLoan]
![](images/l_nav_homeequity_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeEqLoan]
![](images/l_nav_homeequity_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeIns]
![](images/l_nav_homeins_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeIns]
![](images/l_nav_homeins_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeWrnty]
![](images/l_nav_homewrnty_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeWrnty]
![](images/l_nav_homewrnty_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=TitleIns]
![](images/l_nav_titleins_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=TitleIns]
![](images/l_nav_titleins_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=FindContr]
![](images/l_nav_findcontr_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=FindContr]
![](images/l_nav_findcontr_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CreditRep]
![](images/l_nav_creditrep_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CreditRep]
![](images/l_nav_creditrep_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CompHome]
![](images/l_nav_comphome_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CompHome]
![](images/l_nav_comphome_off.gif
)
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]
![](images/l_nav_otherserv_off.gif
)
width=132 height=13 border=0>[/hideif]>[showif [S_NAME]=OtherServ]
![](images/l_nav_otherserv_off.gif
)
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:
[WebDNA] .htm files (2008)
Email notification to one of multiple vendors ? (1997)
Running _every_ page through WebCat-error.html (1997)
Price problem (1997)
[WebDNA] shopping sites and the "old commerce tags" (2012)
View order not right (1997)
Comments in db? (1997)
Other then credit cards-how? (1997)
sharing cookie recepies (1998)
Why did PCS send me this? (1999)
TCPSend / Netscape Server 4.1 (2003)
Security Question (1997)
Postprocessing CCs (2000)
no global [username] or [password] displayed ... (1997)
WebCat2: Found Items syntax, etc. (1997)
[WebDNA] Subtotal of SKU's that begin with ... (2009)
Attn: Bug in GeneralStore example b15 (1997)
[WebDNA] doesn't "&max=1" work in a [delete] context?, & [OT] thanks. (2009)
RE: major search problem (1998)
[WebDNA] read database from other domain (2015)