Re: if else problem
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54640
interpreted = N
texte = Thanks...In response to that idea I tried the following code which is shorter andwhat I would have thought easier to write but I am still getting the sameresults (or no result as the case may be) :([!] Force JPY currency [/!][text]currency=JPY][/text][if ("[currency]"="USD") | ("[currency]"="EUR") | ("[currency]"="JPY")][then][showif [currency]=USD][text]priceDisplay=[format10.2f][USDcost][/format][/text][/showif][showif [currency]=EUR][text]priceDisplay=[format10.2f][EURcost][/format][/text][/showif][showif [currency]=JPY][text]priceDisplay=[format10.2f][JPYcost][/format][/text][/showif][/then][else][text]priceDisplay=[format 10.2f][PRICE][/format][/text][/else][/if]Any suggestions are welcome...Alanon 12/4/03 4:25 PM, Brian Fries at webdna@brainscansoftware.com wrote:> Parentheses are optional if you only have one comparison, but required> if you have multiple:> > [if ("[currency]"="EUR") | ("[currency]"="USD")]...> > - brian> -------------------------------------------------------------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:
Thanks...In response to that idea I tried the following code which is shorter andwhat I would have thought easier to write but I am still getting the sameresults (or no result as the case may be) :([!] Force JPY currency [/!][text]currency=JPY][/text][if ("[currency]"="USD") | ("[currency]"="EUR") | ("[currency]"="JPY")][then][showif [currency]=USD][text]priceDisplay=[format10.2f][USDcost][/format][/text][/showif][showif [currency]=EUR][text]priceDisplay=[format10.2f][EURcost][/format][/text][/showif][showif [currency]=JPY][text]priceDisplay=[format10.2f][JPYcost][/format][/text][/showif][/then][else][text]priceDisplay=[format 10.2f][PRICE][/format][/text][/else][/if]Any suggestions are welcome...Alanon 12/4/03 4:25 PM, Brian Fries at webdna@brainscansoftware.com wrote:> Parentheses are optional if you only have one comparison, but required> if you have multiple:> > [if ("[currency]"="EUR") | ("[currency]"="USD")]...> > - brian> -------------------------------------------------------------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/
Alan White
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:
SQL Ref. (1999)
update on wn searching (1997)
More than one db with the same namn (was: WC2f3) (1997)
migrating from MacOS to unix (2000)
Loss in Form (1998)
Site Test Please (2005)
Retaining data (2003)
SiteEdit Pro, DataBase Helper and Europe (2000)
[shownext max=?] armed (1997)
[WebDNA] Broken Links on Webdna.us Website (2011)
Problems with [Search] param - Mac Plugin b15 (1997)
CSS positioning!!! (2001)
can webcat trigger executable files? (2000)
Not sending email !!! (2002)
Repeating Fields (1997)
if else problem (2003)
Math Problem - Format? (1997)
test (2008)
still having search problem, please help :) (2004)
View Source from cache (1997)