Why is this not false?
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38038
interpreted = N
texte = I seem to be having a problem with an if/then/else context. Here is thecode that is giving me the problem:-------------------------------------------------------------------------[text]discount_active=T[/text][math show=F]discount_quantity=1[/math][math show=F]current_quantity=2[/math][math show=F]discount_total=6[/math][math show=F]current_total=5[/math][if([discount_active]=T)&([discount_quantity]<[current_quantity])&([discount_total]<[current_total])]-------------------------------------------------------------------------It seems as though the contents of the if/then/else statement AFTER thesecond ampersand (the third comparison) are not being evaluated. In theabove example, ELSE should activate, as the third comparison is false,but THEN activates instead. If I reverse the second and thirdcomparisons, then the new second comparison seems to be evaaluated, butthe new third is no longer evaluated.Am I doing something wrong, or how can I get this statement to evaluateall three comparisons?Thanks for the assistance,Dennis-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I seem to be having a problem with an if/then/else context. Here is thecode that is giving me the problem:-------------------------------------------------------------------------[text]discount_active=T[/text][math show=F]discount_quantity=1[/math][math show=F]current_quantity=2[/math][math show=F]discount_total=6[/math][math show=F]current_total=5[/math][if([discount_active]=T)&([discount_quantity]<[current_quantity])&([discount_total]<[current_total])]-------------------------------------------------------------------------It seems as though the contents of the if/then/else statement AFTER thesecond ampersand (the third comparison) are not being evaluated. In theabove example, ELSE should activate, as the third comparison is false,but THEN activates instead. If I reverse the second and thirdcomparisons, then the new second comparison seems to be evaaluated, butthe new third is no longer evaluated.Am I doing something wrong, or how can I get this statement to evaluateall three comparisons?Thanks for the assistance,Dennis-------------------------------------------------------------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://search.smithmicro.com/
Dennis J. Bonsall, Jr.
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:
Associative lookup style? + bit more (1997)
Dreamweaver (2002)
HTML Editors (1997)
[TCPSend] and whois? (1999)
Problems with WebDNA-Talk list (1998)
[WebDNA] exemple of [arrayset] & [arrayget] (2012)
WebCatalog 3.0.4 alias crash bug? (2000)
Separate SSL Server (1997)
Unique value creation (1999)
Expiration of Carts (1997)
Virtual Postcards (1998)
unix permissions theory applied to db security? Or...? (2000)
math on date? (1997)
syntax question, not in online refernce (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Nutscrape Doesn't Render Right (2002)
Dark Horse Comics success story (1997)
Hosting Options (2000)
Include a big block of text (1997)
payflowpro problem (2003)