Re: If Else Statement...
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 59595
interpreted = N
texte = I fixed it by putting the [if [discountMod]>5] statement before the between 3&5 statement :DAlan White wrote:> Hi folks...>> Can anyone see why a discountMod of 6 or above would be getting a > discountFactor of 15 (or a cleaner way of doing this)?>> [if [discountMod]<2]> [then][text show=f]discountFactor=5[/text][/then]> [else]> [if [discountMod]=2]> [then][text]discountFactor=10[/text][/then]> [else]> [if (([discountMod]>=3) & ([discountMod]<6))]> [then][text show=f]discountFactor=15[/text][/then]> [else]> [if [discountMod]>5]> [then][text > show=f]discountFactor=20[/text][/then]> [/if]> [/else]> [/if]> [/else]> [/if]> [/else]> [/if]>> TIA> Alan>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I fixed it by putting the [if [discountMod]>5] statement before the between 3&5 statement :DAlan White wrote:> Hi folks...>> Can anyone see why a discountMod of 6 or above would be getting a > discountFactor of 15 (or a cleaner way of doing this)?>> [if [discountMod]<2]> [then][text show=f]discountFactor=5[/text][/then]> [else]> [if [discountMod]=2]> [then][text]discountFactor=10[/text][/then]> [else]> [if (([discountMod]>=3) & ([discountMod]<6))]> [then][text show=f]discountFactor=15[/text][/then]> [else]> [if [discountMod]>5]> [then][text > show=f]discountFactor=20[/text][/then]> [/if]> [/else]> [/if]> [/else]> [/if]> [/else]> [/if]>> TIA> Alan>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Alan White
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:
[WriteFile] problems (1997)
Re:quit command on NT (1997)
[WebDNA] OT: How is this being done? Curious. (2009)
Initiating NewCart (1997)
Re:Emailer Set Up (1997)
HELP WITH DATES (1997)
[WebDNA] Credit card processing (2012)
TaxRate and ShipCost Problem (1998)
WebCatalog NT beta 18 problem (1997)
First n words (2000)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
WSDL Wizard (2003)
TeaRoom Order fields email account remain empty even though thewy are filled. (1997)
WebCat, sudo and ImageMagick (2002)
Need some extra eyes (2003)
&max= (2003)
[interpret] inside the db field? (1997)
webcat2b12 CGI -- Date comparisons (1997)
RE: Can't get appendfile to work (1997)
Stopping bad HTML propagation ? (1997)