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:

mac hack (1997) Size limit for tmpl editor ? (1997) 2nd try: possible to weight results of grouped fields search? (1998) OT:looking for developers or you wanna swap some code? (2000) test (2002) Feature Request: Autonumber adendum (2004) turning every 5th line red (1999) WebCat2 as a chat server? (1997) LOOP and IF statements (1997) wish list (2002) Banners (1997) A multi-processor savvy WebCatalog? (1997) HomePage Caution (1997) Logical and or in [hideif] (1997) WebCat2b13 Command Reference Doc error (1997) Memory Error message (1998) How to download a database???/ (2000) Fwd: HTML encoding in URLs (1997) Problems getting parameters passed into email. (1997) webstar (ot) (2001)