Re: if then logic
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62940
interpreted = N
texte = Look in the interactive docs for this answer ;-)The problem is that it is an "invalid" statement(because "[buy.x]" is not a valid math comparison... soyou will always get the false answer.DonovanBob Minor wrote:> I have the following statement based on a button pushed:> > [if ([buy.x]>0)|([saveitem.x]=0)]> [then]bought[/then]> [else]wished[/else]> [/if]> > Here is my result, what is wrong with my picture.> > wished> buy.x=[buy.x]> saveitem.x=0> if ([buy.x]>0)|(0=0)> > > as you can see saveitem.x=0 yet the result from the statement is wished.-- =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:
Look in the interactive docs for this answer ;-)The problem is that it is an "invalid" statement(because "[buy.x]" is not a valid math comparison... soyou will always get the false answer.DonovanBob Minor wrote:> I have the following statement based on a button pushed:> > [if ([buy.x]>0)|([saveitem.x]=0)]> [then]bought[/then]> [else]wished[/else]> [/if]> > Here is my result, what is wrong with my picture.> > wished> buy.x=[buy.x]> saveitem.x=0> if ([buy.x]>0)|(0=0)> > > as you can see saveitem.x=0 yet the result from the statement is wished.-- =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:
WebCat 3.04-3.07 plug-in dying on server.... (2000)
[WebDNA] JSON objects and [JSONstore]: new cell (2014)
[WebDNA] Testing (2016)
Trouble Searching (1999)
5.0 Pricing (2003)
Tricky Products Page (2002)
WCS Newbie question (1997)
[showif] and equality (1998)
Help name our technology! I found it (1997)
WebCat2b12 - New features for 1.6 users ... (1997)
Help name our technology! (1997)
Problems with [Applescript] (1997)
is there a global includes directory? (1998)
WebCat2 beta FTP site (1997)
Help! WebCat2 bug (1997)
Credit card types (1997)
broken [include]s (1998)
RE: WebCat and image maps (1997)
Duplicate Items in the Cart (1998)
WebDNA Solutions ... sorry! (1997)