Re: if else problem: Version 2

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54649
interpreted = N
texte = [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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: if else problem: Version 2 ( "Erol Guneri" 2003)
  2. Re: if else problem: Version 2 ( Alan White 2003)
[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/ 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:

[Announce]: Web server security and password protection (1997) [WebDNA] Convert Math Date in Excel (2010) GoLive CyberStudio 1.0.1 (1997) problems with 2 tags shakur (1997) WebCommerce: Folder organization ? (1997) showif errors (1998) Interfacing WC with mail server (1998) Authorize.net, SIM, tcpconnect and applescript (2003) Limiting user access to .tmpl files (1997) what characters are replaced for tab and CR? (1998) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) 9 digit zip (2002) Shopping cart now good (fixed it) (1997) Fun with Dates - revisited (1997) For those of you not on the WebCatalog Beta... (1997) Calendar Snippet Available (1998) Separate SSL Server (1997) japanese characters (1997) [WebDNA] Apache 2 httpd.conf Question (2008) Search for 20 finds ... Eureka! (1997)