Re: if else problem: Version 2
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54650
interpreted = N
texte = Try removing the ] from the end of your currency text:[text]currency=JPY][/text]Erol----- Original Message -----From: "Alan White"
To: "WebDNA Talk" Sent: Thursday, December 04, 2003 5:23 PMSubject: Re: if else problem: Version 2> [text]USDcost=[math][PRICE]*[lookup>db=admin/mycurrency.db&value=USD&lookinfield=currency&returnfield=exchangeRa> te][/math][/text]> [text]JPYcost=[math][PRICE]*[lookup>db=admin/mycurrency.db&value=JPY&lookinfield=currency&returnfield=exchangeRa> te][/math][/text]> [text]EURcost=[math][PRICE]*[lookup>db=admin/mycurrency.db&value=EUR&lookinfield=currency&returnfield=exchangeRa> te][/math][/text]> [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]>> on 12/4/03 5:21 PM, Donovan Brooke at dbrooke@euca.us wrote:>> > Alan White wrote:> >> > [snip] Do you think it could be to do with my config or> >> something?> >> > No,> >> > Alan, can you post what you have now...> > Also, did you answers Brian's question about if [currency]> > is comming through? (just put it just before the if/else> > statement and see what it displays.> >> > Donovan> >> >>>> -------------------------------------------------------------> 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/>-------------------------------------------------------------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:
Try removing the ] from the end of your currency text:[text]currency=JPY][/text]Erol----- Original Message -----From: "Alan White" To: "WebDNA Talk" Sent: Thursday, December 04, 2003 5:23 PMSubject: Re: if else problem: Version 2> [text]USDcost=[math][PRICE]*[lookup>db=admin/mycurrency.db&value=USD&lookinfield=currency&returnfield=exchangeRa> te][/math][/text]> [text]JPYcost=[math][PRICE]*[lookup>db=admin/mycurrency.db&value=JPY&lookinfield=currency&returnfield=exchangeRa> te][/math][/text]> [text]EURcost=[math][PRICE]*[lookup>db=admin/mycurrency.db&value=EUR&lookinfield=currency&returnfield=exchangeRa> te][/math][/text]> [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]>> on 12/4/03 5:21 PM, Donovan Brooke at dbrooke@euca.us wrote:>> > Alan White wrote:> >> > [snip] Do you think it could be to do with my config or> >> something?> >> > No,> >> > Alan, can you post what you have now...> > Also, did you answers Brian's question about if [currency]> > is comming through? (just put it just before the if/else> > statement and see what it displays.> >> > Donovan> >> >>>> -------------------------------------------------------------> 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/>-------------------------------------------------------------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/
"Erol Guneri"
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:
Document contains no data... (1999)
Payment Processors (2006)
[delete] problem (1997)
WebMerchant 1.6 and SHTML (1997)
serial number generation (1997)
Oops! (1998)
[LOOKUP] (1997)
Browser / Mime Type mapping problem. (2000)
New to WebCat, Help. (1998)
Xserve Recommendations (2003)
Location of Webcat site in folder hierarchy (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Sku numbers (1997)
writing db to disk (1997)
Online reference (1997)
http upload (2001)
Date Question (2002)
WebCat2 - storing unformatted date data? (1997)
[OT] MS Security Flaw (2000)
Post size Limit? (1998)