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 4.0 & WebMerchant (2000)
Linux [decrypt] bug exists only on webcat 3 or also 4? (2000)
Help name our technology! (1997)
WebCat2 - Getting to the browser's username/password data (1997)
WebCat2b12 - nesting [tags] (1997)
[OT] Airport Network (2003)
Problem with a search context (2005)
WebDNA v6 & MySQL (2008)
[WebDNA] StoreBuilder 3.0 (2014)
Goofy Date Sorting (1998)
[WebDNA] function variables (2011)
HomePage Caution (1997)
RE: [shownext] support - MacOS (1997)
How nuch ram??? (1997)
Re:no [search] with NT (1997)
Exclamation point (1997)
[OT] Airport Network (2003)
Requiring that certain fields be completed (1997)
[taxrate] question (1997)
Universal db access template ... (2002)