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:

Sendmail: bounced e-mails (2001) [shownext] (1998) [WebDNA] [BULK] Mac OS X LION has no FastCGI (2011) PSC recommends what date format yr 2000??? (1997) RE: Languages (1997) RE: WebCatalog2 for NT Beta Request (1997) Physical Security for WebCatalog Directories (1997) WebCat2 - [format thousands] (1997) Rhapsody? (1997) CommandSecurity? (1997) sorting by date (1999) SKU lookup (1997) 'RequiredField' Question (1998) FWD: Returned mail: Too many hops 18 (17 max): from creating a 60 fields database (1997) Date or time comparisons have bugs ... (1998) CC: (1998) Webcatalog server support (1997) QuitFeedback & DBNotOpened errors (1997) populating a [table] (2004)