[WebDNA] [if] or [case] or something else

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 110019
interpreted = N
texte = Hi All I have a little problem that I'm hoping someone cane help with or at = least point me in the correct direction. I have a list of prices, if the price lies in a particular range I do = one set of maths, if it lies in a different range I do a different thing = etc etc.=20 <650 then set x to 120 =3D>650 and < 800 set x to 110 =3D>800 and < 950 set x to 100 .... .... .... >1550 set x to 50 What is the best way to code it, using if then or using switch? If it's = switch then what is the syntax of the case bit? Or maybe a different = way? Any help much appreciated. Cheers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig - Asylum Interactive Ltd Tel +44 1330 860550 Fax +44 1330 860880 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://www.asylumweb.com Email: steve@asylumweb.com Skype: s.craig - iChat: steve.craig =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Associated Messages, from the most recent to the oldest:

    
  1. Re: [BULK] Re: [WebDNA] [if] or [case] or something else ("Brian B. Burton" 2012)
  2. RE: [BULK] Re: [WebDNA] [if] or [case] or something else ("Terry Nair" 2012)
  3. Re: [BULK] Re: [WebDNA] [if] or [case] or something else ("Brian B. Burton" 2012)
  4. RE: [BULK] Re: [WebDNA] [if] or [case] or something else ("Terry Nair" 2012)
  5. Re: [BULK] Re: [WebDNA] [if] or [case] or something else (Steve Craig 2012)
  6. [BULK] Re: [WebDNA] [if] or [case] or something else ("Brian B. Burton" 2012)
  7. Re: [WebDNA] [if] or [case] or something else (Christer Olsson 2012)
  8. Re: [WebDNA] [if] or [case] or something else (Steve Craig 2012)
  9. Re: [WebDNA] [if] or [case] or something else (Christer Olsson 2012)
  10. Re: [WebDNA] [if] or [case] or something else (Steve Craig 2012)
  11. Re: [WebDNA] [if] or [case] or something else (Brian Fries 2012)
  12. [WebDNA] [if] or [case] or something else (Steve Craig 2012)
Hi All I have a little problem that I'm hoping someone cane help with or at = least point me in the correct direction. I have a list of prices, if the price lies in a particular range I do = one set of maths, if it lies in a different range I do a different thing = etc etc.=20 <650 then set x to 120 =3D>650 and < 800 set x to 110 =3D>800 and < 950 set x to 100 .... .... .... >1550 set x to 50 What is the best way to code it, using if then or using switch? If it's = switch then what is the syntax of the case bit? Or maybe a different = way? Any help much appreciated. Cheers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig - Asylum Interactive Ltd Tel +44 1330 860550 Fax +44 1330 860880 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://www.asylumweb.com Email: steve@asylumweb.com Skype: s.craig - iChat: steve.craig =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig

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:

Limit picture size on upload (2005) Bug Report, maybe (1997) 2nd WebCatalog2 Feature Request (1996) Custom Shipping Charges (1997) [WebDNA] Copy database from domain 1 to domain 2 (2010) [WebDNA] Version 7.x: webdna.ini and EmailerPrefs (2012) form data submission gets truncated (1997) RE: [WebDNA] Redirecting incoming URL request to https page (2018) Version f1 status (1997) Re2: frames & carts (1997) frames & carts (1997) One Hour Email (2002) Freeze (2003) Kaaaaahhhhhhhnnnnnnn! (1997) carriage returns in data (1997) [random] only for 1-100??? (1997) WebCat2 beta 11 - new prefs ... (1997) [Lookup] on secure page not returning anything (2000) New index for docs (1997) [WebDNA] Froala Editor working with WebDNA (2016)