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:
BBEdit and WebCatalog 2.0? (1997)
Multiple catalog databases and showcart (1997)
FYI: virus alert (1996)
Can you do this??? and other stuff (1997)
Weird Math and SV (1997)
&max= (2003)
RequiredFields template (1997)
setheader and retrieve it immediatly (2001)
Emailer (1998)
Loss in Form (1998)
multi-paragraph fields (1997)
Text data with spaces in them... (1997)
Laying an egg. (1998)
Max DB Size (2004)
Digest for 4/18/97 (1997)
Hiding HTML and page breaks (1997)
One .hdr, multiple .db's? (2003)
[WebDNA] Webcat install on Windows 2003 Server web edition - NOT AUTHORIZED (2010)
WebCommerce: Folder organization ? (1997)
URL for Discussion Archive (1997)