Re: wish list

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41510
interpreted = N
texte = On 13.7.2002 11:09 AM, Kenneth Grome wrote:>> Yes, but what if you want to do something like: >> >> [if ([dynamic_statement]=yes) | ([dynamic_statement]=no][then] Do >> This[/then][else] >> Do That >> [/else][/if] > > > Then I do it like this: > > [showif .yes.no.^.[dynamic_statement].] > Do this > [/showif] > > [hideif .yes.no.^.[dynamic_statement].] > Do That > [/hideif]Actually for me does the if-then-else makes a lot of sense when you need to and things together to execute a code, like:[if ((somecode=someresult) & (needthis=needthis) & (needthis2=needthis2) & (needthis3=needthis3))] [then] Some mumbajumbo [/then] [else] Another one here [/else] [/if]Just makes the code cleaner then doing 5 nested showifs. But after all, code as you want:-)Sincerely Nitai Aventaggiato CEO-- Tools to energize business Content Management & eBusiness SystemsComputerOil GmbH http://computeroil.com/ Hauptstrasse 12 info@computeroil.com 8252 Schlatt/Switzerland Tel: +41 (0)52 654 15 55 Fax: +41 (0)52 654 15 59 ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Wish list (William DeVaul 2010)
  2. Re: [WebDNA] Wish list (Stuart Tremain 2010)
  3. [WebDNA] Wish list (Marc Thompson 2010)
  4. Re: wish list (Grant Hulbert 2002)
  5. Re: wish list (Andrew Simpson 2002)
  6. Re: wish list (Adam O'Connor 2002)
  7. Re: wish list (Glenn Busbin 2002)
  8. Re: wish list (Kenneth Grome 2002)
  9. Re: wish list (Adam O'Connor 2002)
  10. Re: wish list (Rob Marquardt 2002)
  11. Re: wish list (Aaron Lynch 2002)
  12. Re: wish list (Glenn Busbin 2002)
  13. Re: wish list (Aaron Lynch 2002)
  14. Re: wish list (Grant Hulbert 2002)
  15. Re: wish list (Paul Uttermohlen 2002)
  16. Re: wish list (Nitai @ ComputerOil 2002)
  17. Re: wish list (Kenneth Grome 2002)
  18. Re: wish list (Nitai @ ComputerOil 2002)
  19. Re: wish list (Kenneth Grome 2002)
  20. Re: wish list (Jesse Williams-Proudman 2002)
  21. Re: wish list (Kenneth Grome 2002)
  22. Re: wish list (Aaron Lynch 2002)
  23. Re: wish list (Kenneth Grome 2002)
  24. Re: wish list (marc malacarme 2002)
On 13.7.2002 11:09 AM, Kenneth Grome wrote:>> Yes, but what if you want to do something like: >> >> [if ([dynamic_statement]=yes) | ([dynamic_statement]=no][then] Do >> This[/then][else] >> Do That >> [/else][/if] > > > Then I do it like this: > > [showif .yes.no.^.[dynamic_statement].] > Do this > [/showif] > > [hideif .yes.no.^.[dynamic_statement].] > Do That > [/hideif]Actually for me does the if-then-else makes a lot of sense when you need to and things together to execute a code, like:[if ((somecode=someresult) & (needthis=needthis) & (needthis2=needthis2) & (needthis3=needthis3))] [then] Some mumbajumbo [/then] [else] Another one here [/else] [/if]Just makes the code cleaner then doing 5 nested showifs. But after all, code as you want:-)Sincerely Nitai Aventaggiato CEO-- Tools to energize business Content Management & eBusiness SystemsComputerOil GmbH http://computeroil.com/ Hauptstrasse 12 info@computeroil.com 8252 Schlatt/Switzerland Tel: +41 (0)52 654 15 55 Fax: +41 (0)52 654 15 59 ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Nitai @ ComputerOil

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:

Count Characters (2005) Problem with empty form-variables in [search] (1998) Using Plug-In while running 1.6.1 (1997) autocommit problem (1998) ITools 8 and WebDNA6 (2005) WC1.6 to WC2 date formatting -FIXED! (1997) WebCAT has the devil in it! (2003) Re:What file? (1997) form data submission gets truncated (1997) multi-paragraph fields (1997) Bug? (1997) [WebDNA] Date weirdness (2014) SQL Changes in 3.0.7? (2000) snicker, snicker (1997) Providing hard copy of database to client (1997) Re[2]: Re[3]: Problem with new formvariables (2000) WebCatalog2 Feature Feedback (1996) UPDATE PROBLEM (1997) WebCatalog f2 Installation (1997) U&P IIS concept (1998)