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:
Permission denied? (2004)
No Access warning when caching HTML files (1997)
popups, netscape vs explorer (1997)
WebCat hosting providers? (1997)
RE: Problems with dbcatalog.exe (1997)
Max Record length restated as maybe bug (1997)
Shownext and search context (2000)
logout after authenticated (2002)
Show shoppingcart after remove last item (1997)
Which GUI HTML editors work with WC ? (1997)
two unique banners on one page (1997)
upgrading (1997)
Another Large Database Questions (1997)
Introduction/Tutorial/QuickStart (1997)
Re:no [search] with NT (1997)
INDEXING blank field (2001)
Date search - yes or no (1997)
Open Market's Transact & Macintosh (1998)
Listserver problem (1997)
Comments in db? (1997)