Re: nested showif?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17253
interpreted = N
texte = >>Is there a way to combine [showif] commands? >> >>I have: >>[showif [name]=phone] >> [showif [value]> ] >> ...do something... >> [/showif] >>[/showif| >> >>And I want something which does: >>[showif [name]=phone]-AND-[value]> ] >> ...do something... >>[/showif] > >You're already doing it the right way. If you have lot's of conditions you >could add a simple check function by: > >[Math show=f]EverythingsOK=0[/Math] > >[HideIf [value1]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf] >[HideIf [value2]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf] >[HideIf [value3]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf] > >[ShowIf [Math]EverythingsOK[/Math]0] >Your magic message here >[/ShowIf] This is a great way to get rid of all that nesting, and not only is it faster but it eliminates that Too many nested... error too ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: nested showif? (Kenneth Grome 1998)
  2. Re: nested showif? (christer@ljusaideer.se (Christer Olsson) 1998)
  3. nested showif? (Peter Ostry 1998)
>>Is there a way to combine [showif] commands? >> >>I have: >>[showif [name]=phone] >> [showif [value]> ] >> ...do something... >> [/showif] >>[/showif| >> >>And I want something which does: >>[showif [name]=phone]-AND-[value]> ] >> ...do something... >>[/showif] > >You're already doing it the right way. If you have lot's of conditions you >could add a simple check function by: > >[Math show=f]EverythingsOK=0[/Math] > >[HideIf [value1]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf] >[HideIf [value2]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf] >[HideIf [value3]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf] > >[ShowIf [math]EverythingsOK[/Math]0] >Your magic message here >[/ShowIf] This is a great way to get rid of all that nesting, and not only is it faster but it eliminates that Too many nested... error too ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://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:

Multiple Ad databases? (1997) Silly date question (2006) mod_webcatalog2.so (2003) WebDNA on Windows (2003) Still having math problems (1997) How true is this? (1999) WebDNA monitor not working (2002) Setting up shop (1997) Alternating colors (1997) off topic fetch vs PCS photomaster (1997) [math date] with non-US date format (2000) Donovans Theorem (2003) [WebDNA] port from mime headers? (2017) Search Questions (2000) 2.1.5: Too Many Nested [xxx] (1998) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) catagories (1997) serial number dishing (1997) can WC render sites out? (1997) WebCatalog can't find database (1997)