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:
Rhapsody? (1997)
FlushDatabase Suggestion (1998)
Loss in Form (1998)
[WebDNA] IP Address to country (2008)
Webmerchant confirmation hooks? (1997)
Limiting user access to .tmpl files (1997)
getchars broken? (1997)
Trouble with formula.db (1997)
Trouble creating a temp database (2000)
Version f1 status (1997)
Multiple fields on 1 input (1997)
WebCatalog2 Feature Feedback (1996)
RE: is sku a REQUIRED field on NT (1997)
Restoring textarea stored in header (1998)
Re:2nd WebCatalog2 Feature Request (1996)
Running _every_ page through WebCat ? (1997)
Help with searching dates from mysql dump & searching (2006)
Summarizing on two fields (1998)
[WebDNA] Base 64 (2010)
TinyStore Question (1999)