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

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105201
interpreted = N
texte = Not at this time. This will be added in a future version. - chris On Apr 28, 2010, at 17:48, William DeVaul wrote: > Can case statements handle more complex comparisons than just whether > two values are equal? >=20 > E.g. for an index.htm: >=20 > [switch value=3D[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] >=20 > Can we also get a "does not contain" comparison for all conditional = operators? >=20 > Thanks, > Bill > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: = http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288 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)
Not at this time. This will be added in a future version. - chris On Apr 28, 2010, at 17:48, William DeVaul wrote: > Can case statements handle more complex comparisons than just whether > two values are equal? >=20 > E.g. for an index.htm: >=20 > [switch value=3D[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] >=20 > Can we also get a "does not contain" comparison for all conditional = operators? >=20 > Thanks, > Bill > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: = http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288 christophe.billiottet@webdna.us

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:

SiteEdit NewFile.html ? (1997) [include] (1998) WebCatalog [FoundItems] Problem - LONG - (1997) Special characters in field names (1998) Size limit for tmpl editor ? (1997) [cart] tag (2000) [WebDNA] Crashing again (2008) WCS Newbie question (1997) Locking up with WebCatalog... (1997) emailer error 103 part ii (1997) using showpage and showcart commands (1996) WebCatalog for Mac 2.0.1 Released (1997) LOOP and IF statements (1997) Listfiles (1998) shipping costs (2000) oops private message leaked into talk list (1997) File Upload (1997) SetHeader not Working (2006) [Shownext] (1997) Problem with a search context (2005)