[WebDNA] Comparisons in "if" and "case" statements

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105199
interpreted = N
texte = Can case statements handle more complex comparisons than just whether two values are equal? E.g. for an index.htm: [switch value=[getmimeheader HOST]] [case value^domain1.com] Welcome to domain1.com! [/case] [case value^domain2.com] Domain2 here. [/case] [default] You have reached the default domain. [/default] [/switch] Can we also get a "does not contain" comparison for all conditional operators? Thanks, Bill Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Comparisons in "if" and "case" statements (christophe.billiottet@webdna.us 2010)
  2. Re: [WebDNA] Comparisons in "if" and "case" statements (Govinda 2010)
  3. [WebDNA] Comparisons in "if" and "case" statements (William DeVaul 2010)
Can case statements handle more complex comparisons than just whether two values are equal? E.g. for an index.htm: [switch value=[getmimeheader HOST]] [case value^domain1.com] Welcome to domain1.com! [/case] [case value^domain2.com] Domain2 here. [/case] [default] You have reached the default domain. [/default] [/switch] Can we also get a "does not contain" comparison for all conditional operators? Thanks, Bill William DeVaul

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:

[SearchString] usage (1997) Was it something I said??? (1998) default value from Lookup (was Grant, please help me) (1997) Nitro plugin? (1998) WebCat2 - Getting to the browser's username/password data (1997) Export database record - append to other database (2005) 2 easy questions re: [showif] and [sendmail] (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Progress !! WAS: Trouble with formula.db (1997) Bulletin Board.... (2000) (1997) Signal Raised (1997) Grep issue (2003) all records returned. (1997) problems with WebCat-Plugin () [random] only for 1-100??? (1997) WebCat2 - Getting to the browser's username/password data (1997) Keeping the cart alive through multiple add commands (2000) SSL and Webstar 3 with Webcatalog (1998) WCS Newbie question (1997)