Re: if then logic

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62931
interpreted = N
texte = I would try throwing a set of quotes around the = comparison. The math logic should work without them, but obviously it isn't, so try it with the quotes. On Sep 7, 2005, at 12:57 PM, Bob 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. -- Jesse Proudman Blue Box Group, LLC p. +1.800.613.4305 x801 e. jesse@blueboxgrp.com ------------------------------------------------------------- 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)
I would try throwing a set of quotes around the = comparison. The math logic should work without them, but obviously it isn't, so try it with the quotes. On Sep 7, 2005, at 12:57 PM, Bob 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. -- Jesse Proudman Blue Box Group, LLC p. +1.800.613.4305 x801 e. jesse@blueboxgrp.com ------------------------------------------------------------- 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/ Jesse Proudman

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:

Req: Row DB feature (2004) Uh...can someone help me out with the b10? (1997) [MATH SHOW=F]. show=f does what? (1999) textarea to page display (1998) Problem (1997) Case sensitivity and [showif] (1999) Emailer port change (1997) emailer error -108 (1997) [format] (1998) WebDNA Promo Sound Bite (2003) Nested tags count question (1997) File Uploads: WebCat/SiteEdit (1998) Sort Order on a page search (1997) ReturnRaw context (1997) Execute Applescript (1997) NetForms for mail, sorry (1998) ups quickcost [repost] (1999) Buying sans cart (1997) Dummy Form Variables Needed (2000) [WebDNA] No more SQL in 7.1? (2012)