Is there an easier way?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21392
interpreted = N
texte = Hi everyone.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][/if] this is what I do have though...
[hideif [S_NAME]=ListHome]
[/hideif] [showif [S_NAME]=ListHome]
[/showif] [hideif [S_NAME]=SearchHomes]
[/hideif] [showif [S_NAME]=SearchHomes]
[/showif] [hideif [S_NAME]=NewHomeComm]
[/hideif] [showif [S_NAME]=NewHomeComm]
[/showif] [hideif [S_NAME]=HomePlans]
[/hideif] [showif [S_NAME]=Mortgages]
[/showif] [hideif [S_NAME]=HomeEqLoan]
[/hideif] [showif [S_NAME]=HomeEqLoan]
[/showif] [hideif [S_NAME]=HomeIns]
[/hideif] [showif [S_NAME]=HomeIns]
[/showif] [hideif [S_NAME]=HomeWrnty]
[/hideif] [showif [S_NAME]=HomeWrnty]
[/showif] [hideif [S_NAME]=TitleIns]
[/hideif] [showif [S_NAME]=TitleIns]
[/showif] [hideif [S_NAME]=FindContr]
[/hideif] [showif [S_NAME]=FindContr]
[/showif] [hideif [S_NAME]=CreditRep]
[/hideif] [showif [S_NAME]=CreditRep]
[/showif] [hideif [S_NAME]=CompHome]
[/hideif] [showif [S_NAME]=CompHome]
[/showif] [hideif [S_NAME]=RealEstateNews]
[/hideif] [showif [S_NAME]=RealEstateNews]
[/showif] [hideif [S_NAME]=OtherServ][/hideif] [showif [S_NAME]=OtherServ][/showif] _______________________________________________________________ Charles Kline ckline@macsultants.com MacSultants Professional Solutions for Computer SystemsPhone# 609-273-3255 Fax# 609-273-3721 Associated Messages, from the most recent to the oldest:

    
  1. Re: Is there an easier way? (Kenneth Grome 1998)
  2. Re: Is there an easier way? (PCS Technical Support 1998)
  3. Re: Is there an easier way? (GSwenson@DigitalSynergy.com (Greg Swenson) 1998)
  4. Re: Is there an easier way? (Ronro123@aol.com 1998)
  5. Re: Is there an easier way? (Kenneth Grome 1998)
  6. Re: Is there an easier way? (Kenneth Grome 1998)
  7. RE: Is there an easier way? (Olin Lagon 1998)
  8. Re: Is there an easier way? (Dave MacLeay 1998)
  9. Re: Is there an easier way? (Josh 1998)
  10. Re: Is there an easier way? (PCS Technical Support 1998)
  11. Is there an easier way? (charles kline 1998)
Hi everyone.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][/if] this is what I do have though...
[hideif [S_NAME]=ListHome]
[/hideif] [showif [S_NAME]=ListHome]
[/showif] [hideif [S_NAME]=SearchHomes]
[/hideif] [showif [S_NAME]=SearchHomes]
[/showif] [hideif [S_NAME]=NewHomeComm]
[/hideif] [showif [S_NAME]=NewHomeComm]
[/showif] [hideif [S_NAME]=HomePlans]
[/hideif] [showif [S_NAME]=Mortgages]
[/showif] [hideif [S_NAME]=HomeEqLoan]
[/hideif] [showif [S_NAME]=HomeEqLoan]
[/showif] [hideif [S_NAME]=HomeIns]
[/hideif] [showif [S_NAME]=HomeIns]
[/showif] [hideif [S_NAME]=HomeWrnty]
[/hideif] [showif [S_NAME]=HomeWrnty]
[/showif] [hideif [S_NAME]=TitleIns]
[/hideif] [showif [S_NAME]=TitleIns]
[/showif] [hideif [S_NAME]=FindContr]
[/hideif] [showif [S_NAME]=FindContr]
[/showif] [hideif [S_NAME]=CreditRep]
[/hideif] [showif [S_NAME]=CreditRep]
[/showif] [hideif [S_NAME]=CompHome]
[/hideif] [showif [S_NAME]=CompHome]
[/showif] [hideif [S_NAME]=RealEstateNews]
[/hideif] [showif [S_NAME]=RealEstateNews]
[/showif] [hideif [S_NAME]=OtherServ][/hideif] [showif [S_NAME]=OtherServ][/showif] _______________________________________________________________ Charles Kline ckline@macsultants.com MacSultants Professional Solutions for Computer SystemsPhone# 609-273-3255 Fax# 609-273-3721 charles kline

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:

PCS Emailer's role ? (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) searchable list archive (1997) WebCatalog Technical Reference (1997) forgot the subject - apache/linux8/WC (2002) Rhapsody? (1997) Shipping [grandtotal] solution (1997) Configuration Q (1998) WebCat b13 CGI -shownext- (1997) WebDNA Solutions ... sorry! (1997) SetHeader not Working (2006) [include file=filename.inc&strip=t] (2002) wc 2 pro users - sites, quotes wanted (1997) Major Security Hole IIS NT (1998) Limiting user access to .tmpl files (1997) WebCat2b12 - nesting [tags] (1997) Dark Horse Comics success story (1997) Re2: frames & carts (1997) Protecting webdelivery (1997) Re:How to Display text in empty fields (1997)