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:
[WriteFile] problems (1997)
Setting the Date (2000)
Re:Authenticate (1998)
international time (1997)
Re:redirect from the errorsMessages.db entry (1997)
Out of the woodwork (2007)
[defined]ish (1997)
WC1.6 to WC2 date formatting -FIXED! (1997)
PCS Frames (1997)
Weird Math and SV (1997)
Country & Ship-to address & other fields ? (1997)
my price won't move (1997)
Shopping carts and reloading pages (1997)
Simple way to create unique SKU (1997)
WebCat2 - many [carts] on one template page? (1997)
I try hard to think positively (1998)
Cart Numbers (1997)
WebDNA Developers' Network ---- Thank you (2002)
New public beta available (1997)
RE: [WebDNA] Looking for Govinda (2011)