Re: If Else Statement...

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59605
interpreted = N
texte = I'm not sure I can see the error? The double bracket is because it is part of a multiple condition if statement.... am I missing something? Donovan Brooke wrote: > :-), > Actually, on second look, I found your syntax error. > > [if (([discountMod]>=3) > > (so if you fix that it would work) > > 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)
I'm not sure I can see the error? The double bracket is because it is part of a multiple condition if statement.... am I missing something? Donovan Brooke wrote: > :-), > Actually, on second look, I found your syntax error. > > [if (([discountMod]>=3) > > (so if you fix that it would work) > > 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:

Just Testing (1997) How can I Add several Items into the cart at once? (1997) Separate SSL Server (1997) cart (1997) mac hack (1997) Sorry WebDNA server not running ????? (2002) Credit card types (1997) Re:Dumb Question about Docs (1997) Duplicate Items in the Cart (1998) simple answer? [hideif] (1997) Sensations (1997) WebCat templates for TyphoonPro admin (1999) Searching for all records (1998) drop down menu (2000) Error Messges (1997) Re:2nd WebCatalog2 Feature Request (1996) method of payment (1997) (2000) quick [middle] Q (2000) Sorting error (1997)