Re: if else problem
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54681
interpreted = N
texte = >Thanks...>>In response to that idea I tried the following code which is shorter and>what I would have thought easier to write but I am still getting the same>results (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=[format>10.2f][USDcost][/format][/text][/showif]>[showif [currency]=EUR][text]priceDisplay=[format>10.2f][EURcost][/format][/text][/showif]>[showif [currency]=JPY][text]priceDisplay=[format>10.2f][JPYcost][/format][/text][/showif]>[/then]>[else]>[text]priceDisplay=[format 10.2f][PRICE][/format][/text]>[/else]>[/if]>>Any suggestions are welcome...You asked for a suggestion, here's mine:[showif USD=[currency]][text]priceDisplay=[format 10.2f][USDcost][/format][/text][/showif][showif EUR=[currency]][text]priceDisplay=[format 10.2f][EURcost][/format][/text][/showif][showif JPY=[currency]][text]priceDisplay=[format 10.2f][JPYcost][/format][/text][/showif][hideif [url],USD,EUR,JPY,[/url]^[url],[currency],[/url]][text]priceDisplay=[format 10.2f][PRICE][/format][/text][/hideif]-- Kenneth Grome-------------------------------------------------------------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 and>what I would have thought easier to write but I am still getting the same>results (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=[format>10.2f][USDcost][/format][/text][/showif]>[showif [currency]=EUR][text]priceDisplay=[format>10.2f][EURcost][/format][/text][/showif]>[showif [currency]=JPY][text]priceDisplay=[format>10.2f][JPYcost][/format][/text][/showif]>[/then]>[else]>[text]priceDisplay=[format 10.2f][PRICE][/format][/text]>[/else]>[/if]>>Any suggestions are welcome...You asked for a suggestion, here's mine:[showif USD=[currency]][text]priceDisplay=[format 10.2f][USDcost][/format][/text][/showif][showif EUR=[currency]][text]priceDisplay=[format 10.2f][EURcost][/format][/text][/showif][showif JPY=[currency]][text]priceDisplay=[format 10.2f][JPYcost][/format][/text][/showif][hideif [url],USD,EUR,JPY,[/url]^[url],[currency],[/url]][text]priceDisplay=[format 10.2f][PRICE][/format][/text][/hideif]-- Kenneth Grome-------------------------------------------------------------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/
Kenneth Grome
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:
Sorting by date (1997)
Timeout question .. (2003)
Blog Software (2006)
Cart Unique After Rolling Back Time? (2001)
Extended [ConvertChars] (1997)
WebCatalog 4.0 Users that want to talk to the Media.... (2000)
Information on Vieworders.tpl (1998)
Kaaaaahhhhhhhnnnnnnn! (1997)
too many nested ... problem (1997)
Database Path (1998)
Emailer (WebCat2) (1997)
Quit revisited (1997)
WebCat2b12--[searchstring] bug (1997)
listfiles-looking for slick solution (1997)
Need Sample Template - just purchased (1997)
Upgrading old WebCat Database Files (1997)
[SHOWIF AND/OR] (1997)
Search returns all, not 20 (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Setting vars in a text file..... (2004)