Re: if then logic
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62942
interpreted = N
texte = Bob Minor wrote:> Actually the [buy.x] is the variable name and its working ok. but the > saveitem.x is not, even though its variable is 0> the statement says if "buy.x" is 0 OR if "saveitem.x" is 0, which it > is, then perform the operationIf its working O.K., I'm guessing its set as a text variable.You have two issues going on here. One is the use of periods inthe math variable names, and one is the value of [buy.x] (shownfrom your first post as "buy.x"). I think you will need tofix them both to fix your statement. Below is one way.[math show=F]buy_x=0[/math][math show=F]saveitem_x=0[/math][if (buy_x>0)|(saveitem_x=0)] [then]bought[/then] [else]wished[/else][/if]Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Euca Design Center <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke Euca Design Center 1871 HWY MM Fitchburg, WI 53575 PH:> 1.608.835.2476 Web:> http://www.egg.bz http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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:
Bob Minor wrote:> Actually the [buy.x] is the variable name and its working ok. but the > saveitem.x is not, even though its variable is 0> the statement says if "buy.x" is 0 OR if "saveitem.x" is 0, which it > is, then perform the operationIf its working O.K., I'm guessing its set as a text variable.You have two issues going on here. One is the use of periods inthe math variable names, and one is the value of [buy.x] (shownfrom your first post as "buy.x"). I think you will need tofix them both to fix your statement. Below is one way.[math show=F]buy_x=0[/math][math show=F]saveitem_x=0[/math][if (buy_x>0)|(saveitem_x=0)] [then]bought[/then] [else]wished[/else][/if]Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Euca Design Center <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke Euca Design Center 1871 HWY MM Fitchburg, WI 53575 PH:> 1.608.835.2476 Web:> http://www.egg.bz http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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/
Donovan Brooke
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:
anyone using Webcat 4.x in production? (2000)
[WebDNA] New Mountain Lion OSX Server (2013)
Sending Email (2004)
MacAuthorize and WebMerchant (1997)
Draft Manual, Tutorial, and more (1997)
Cart Number sequence (1997)
WebCat and AppleShare 6.0 (1998)
How flexible is Shipping? (1997)
Requiring that certain fields be completed (1997)
Different Tax levels (1998)
Counting LineItems (2000)
RequiredFields template (1997)
Use of Back and Reload Buttons on ShoppingCart page? (1997)
date pref (1999)
[WebDNA] WebDNA hosting options (2020)
Re:quit command on NT (1997)
WebMerchant and Mac Auth Hub Help Please (1999)
[WebDNA] Add to cart (2014)
Upgrage pricing... The future of WebCatalog is coming with4.0... (2000)
strange [date] behavior (2001)