[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 AllI 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 50What 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=3DSteve Craig - Asylum Interactive LtdTel +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=3Dhttp://www.asylumweb.comEmail: steve@asylumweb.comSkype: 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:
Hi AllI 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 50What 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=3DSteve Craig - Asylum Interactive LtdTel +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=3Dhttp://www.asylumweb.comEmail: steve@asylumweb.comSkype: 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:
[WebDNA] WebDNA Health Monitor (2014)
mac hack (1997)
Generating Report Totals (1997)
WC Database Format (1997)
[WebDNA] WebDNA databases not showing? (2013)
WebCatalog2 Feature Feedback (1996)
javascript newPopwin and webcat (1998)
WebCatalog for NT (1999)
[WebDNA] [announce] WebDNA 6.2.1x (2012)
close to search (2001)
[SHOWIF AND/OR] (1997)
Setting up shop (1997)
WebCatalog NT (1996)
WebCat2: multiple currency support (1997)
Where's Cart Created ? (1997)
Re:ListFields and [name] (1997)
unusual search problem (1998)
Dubble Sku's in a Database (1999)
WebCat3.04/w*4/OS8.5.1 and aliases (1999)
Need help with emailer- 2 issues (1997)