Re: If Else Statement...
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 59597
interpreted = N
texte = Hi DonovanYes .. looked okay to me also ... the following worked though... Maybe the ordering took some sort of precedence? [else] [if [discountMod]>5] [then][text show=f]discountFactor=20[/text][/then] [else] [if (([discountMod]>=3) & ([discountMod]<6))] [then][text show=f]discountFactor=15[/text][/then] [/if] [/else] [/if] [/else]CheersAlanDonovan Brooke wrote:> Hmm, this looks OK to me??? looks like a value of "6" should get> a disccountfactor of 20.>> Donovan>>>> Alan 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/
Associated Messages, from the most recent to the oldest:
Hi DonovanYes .. looked okay to me also ... the following worked though... Maybe the ordering took some sort of precedence? [else] [if [discountMod]>5] [then][text show=f]discountFactor=20[/text][/then] [else] [if (([discountMod]>=3) & ([discountMod]<6))] [then][text show=f]discountFactor=15[/text][/then] [/if] [/else] [/if] [/else]CheersAlanDonovan Brooke wrote:> Hmm, this looks OK to me??? looks like a value of "6" should get> a disccountfactor of 20.>> Donovan>>>> Alan 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/
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:
wrong authentication (1998)
form data submission gets truncated (1997)
Sort Order on a page search (1997)
Configuring E-mail (1997)
&FieldNametype=time unnecessary? (2000)
Country & Ship-to address & other fields ? (1997)
protect tag on NT IIS (1997)
Re:Sami (1998)
Help formatting search results w/ table (1997)
Shopping with Accounts (2003)
Searchable WebCat (etc.) Docs ? (1997)
Preventing code execution (2003)
newbie Q: [cart] documentation (1999)
Adding repeating events to a database (2001)
Bug? (1997)
Help! WebCat2 bug (1997)
Erotic Sites (1997)
Groups doesn't work (1997)
[WebDNA] PCI Vulnerability testing (2009)
WebCat2b12 CGI Mac - [shownext] problem (1997)