[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:

Use WebCat to search files in a folder like a search engine? (2001) Repeating Fields (1997) Date field search needs ... (1998) [WriteFile] problems (1997) WebCat2.0 [format thousands .0f] no go (1997) Showif, Hideif reverse logic ? (1997) Why WebDNA is not popular (2002) admin login problems - something else now (2000) Which GUI HTML editors work with WC ? (1997) Please ignore, TEST (2001) japanese characters (1997) Here we go again... (2006) Extracting undeliverable email addresses (2003) Help needed! (1998) PIXO support (1997) OFF TOPIC: help wanted (1997) [WebDNA] Error: Can't open order file. Ignoring (2011) Database Term [brainfart] (2003) Did you hear about this? (1997) Multiple SSL Keys (1998)