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 operation If 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 in the math variable names, and one is the value of [buy.x] (shown from your first post as "buy.x"). I think you will need to fix 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:

    
  1. Re: if then logic ( Donovan Brooke 2005)
  2. Re: if then logic ( Bob Minor 2005)
  3. Re: if then logic ( Donovan Brooke 2005)
  4. Re: if then logic ( Bob Minor 2005)
  5. Re: if then logic ( Brian Fries 2005)
  6. Re: if then logic ( Jesse Proudman 2005)
  7. if then logic ( Bob Minor 2005)
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 operation If 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 in the math variable names, and one is the value of [buy.x] (shown from your first post as "buy.x"). I think you will need to fix 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:

TeaRoom Order fields email account remain empty even thoughthewy are filled. (1997) New global preference ... ??? (2000) Running _every_ page through WebCat ? (1997) Unexpected error (1997) [SHOWIF] PROBLEM (2000) RE: Can a database get stomped by simultaneous access? (1997) Uh...can someone help me out with the b10? (1997) webcat2b12 CGI -- Date comparisons (1997) Sendmail (SMTP) coming from smithmicro.com (2002) Superfilous Characters (1998) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Multiple catalog databases and showcart (1997) brain teaser with an advanced search (2001) WebCatalog 3.0.4 alias crash bug? (2000) Memory leak with text variables (1998) [protect admin] (1997) Emailer (1997) [WebDNA] BBEdit Codeless Language Module for WebDNA (2009) WebCatalog and WebMerchant reviewed by InfoWorld (1997) Is there a max number of fields? (1998)