Re: If Else Statement...

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59597
interpreted = N
texte = Hi Donovan Yes .. 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] Cheers Alan Donovan 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:

    
  1. Re: If Else Statement... ( "kalin mintchev" 2004)
  2. Re: If Else Statement... ( Brian Fries 2004)
  3. Re: If Else Statement... ( Donovan Brooke 2004)
  4. Re: If Else Statement... ( "kalin mintchev" 2004)
  5. Re: If Else Statement... ( Donovan Brooke 2004)
  6. Re: If Else Statement... ( Alan White 2004)
  7. Re: If Else Statement... ( Donovan Brooke 2004)
  8. Re: If Else Statement... ( Alan White 2004)
  9. Re: If Else Statement... ( Donovan Brooke 2004)
  10. Re: If Else Statement... ( Alan White 2004)
  11. If Else Statement... ( Alan White 2004)
Hi Donovan Yes .. 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] Cheers Alan Donovan 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:

[OT] Trying to steal databases on our server (2003) WebCat2.0 [format thousands .0f] no go (1997) A quickie question (1997) Special characters in field names (1998) Sku numbers (1997) Multiple prices (1997) WebCat for mass emailings (1997) math context ignores date prefs? (1998) [removehtml]? (2000) Re2: frames & carts (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) help on email autoresponder (2003) # fields limited? (1997) WebCat2b13MacPlugIn - [include] (1997) multi-paragraph fields (1997) ODBC to WebCat (2000) Sorting (2000) Warning: Mac OS X 10.2.4 Update Overwrites Apache's (2003) WebCat2b15MacPlugin - showing [math] (1997) WebSTAR 2.1 freezes my Mac (1997)