Re: search/showif issues

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28571
interpreted = N
texte = Ah, even more options! Thanks again for the help Kenneth. Brian >Jesse's suggestion won't work either, because the contexts are still not >'nested' properly. Try this instead: > >[showif [var1]=0] >[search db=...] >[founditems] >... >[/founditems] >[/search] >[/showif] > >[showif [var1]!0] >[search db=...] >[founditems] >... >[/founditems] >[/search] >[/showif] > >And if it's easier to use the same code inside both founditems context, >put that code in an include file, then incude that file inside your >founditems contexts. In fact, you can even put the founditems context >itself in the include file, like this: > >Text of the file named incFile01: > >[founditems] >put all your founditems code here ... >[/founditems] > > >Then use this in your template: > >[showif [var1]=0] >[search db=...] >[include file=incFile01] >[/search] >[/showif] > >[showif [var1]!0] >[search db=...] >[include file=incFile01] >[/search] >[/showif] > >================================ >Kenneth Grome, WebDNA Consultant >808-737-6499 http://webdna.net >================================------------------------------------------------------------- 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:

    
  1. Re: search/showif issues (John Butler 2000)
  2. Re: search/showif issues (Brian Wachter 2000)
  3. Re: search/showif issues (Brian Wachter 2000)
  4. Re: search/showif issues (Jesse Williams Proudman 2000)
  5. Re: search/showif issues (Kenneth Grome 2000)
  6. Re: search/showif issues (Kenneth Grome 2000)
  7. Re: search/showif issues (Jesse Williams Proudman 2000)
  8. Re: search/showif issues (Brian Wachter 2000)
  9. Re: search/showif issues (Jesse Williams Proudman 2000)
  10. search/showif issues (Brian Wachter 2000)
Ah, even more options! Thanks again for the help Kenneth. Brian >Jesse's suggestion won't work either, because the contexts are still not >'nested' properly. Try this instead: > >[showif [var1]=0] >[search db=...] >[founditems] >... >[/founditems] >[/search] >[/showif] > >[showif [var1]!0] >[search db=...] >[founditems] >... >[/founditems] >[/search] >[/showif] > >And if it's easier to use the same code inside both founditems context, >put that code in an include file, then incude that file inside your >founditems contexts. In fact, you can even put the founditems context >itself in the include file, like this: > >Text of the file named incFile01: > >[founditems] >put all your founditems code here ... >[/founditems] > > >Then use this in your template: > >[showif [var1]=0] >[search db=...] >[include file=incFile01] >[/search] >[/showif] > >[showif [var1]!0] >[search db=...] >[include file=incFile01] >[/search] >[/showif] > >================================ >Kenneth Grome, WebDNA Consultant >808-737-6499 http://webdna.net >================================------------------------------------------------------------- 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 Brian Wachter

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:

Sunday [search] puzzler (1999) Speed Optimization - Mac (1997) WebDNA tables and commas (2004) anyone using Webcat 4.x in production? (2000) Progress !! WAS: Trouble with formula.db (1997) Plugin or CGI or both (1997) Nesting format tags (1997) Instructions for Digest (1997) Sorry, WebDNA Server Not Running! (2005) WebDNA tags in WebMerchant email templates ... (1997) Comments in db? (1997) TCP Connect (1999) RE: type 2 errors with ssl server (1997) Limitations on fields? Server is crashing (1997) [WebDNA] Receive JSON POST (2019) PIXO (1997) Emailer (1998) my SOS last week... (1996) ShowNext Command (1997) Can [writefile] files be served thru webcat? (2000)