Re: if else problem :- Version1

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54651
interpreted = N
texte = Alan White wrote: > As verified by brian... Verified by brian? I wan't to know what [currency] parses to on your server. Couple things below: > > [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] Here you have hard coded "currency" to "JPY]" (note the extra "]") Put "

[currency]

" here and link to it and see what it is :-) Donovan > > [if "[currency]"="USD"] > [then] > [text]priceDisplay=[format 10.2f][USDcost][/format][/text] > [/then] > [else] > [if "[currency]"="EUR"] > [then] > [text]priceDisplay=€[format 10.2f][EURcost][/format][/text] > [/then] > [else] > [if "[currency]"="JPY"] > [then] > [text]priceDisplay=¥[format 10.2f][JPYcost][/format][/text] > [/then] > [else] > [text]priceDisplay=£[format 10.2f][PRICE][/format][/text] > [/else] > [/if] > [/else] > [/if] > [/else] > [/if] -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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 :- Version1 ( Donovan Brooke 2003)
  2. Re: if else problem :- Version1 ( Alan White 2003)
Alan White wrote: > As verified by brian... Verified by brian? I wan't to know what [currency] parses to on your server. Couple things below: > > [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] Here you have hard coded "currency" to "JPY]" (note the extra "]") Put "

[currency]

" here and link to it and see what it is :-) Donovan > > [if "[currency]"="USD"] > [then] > [text]priceDisplay=[format 10.2f][USDcost][/format][/text] > [/then] > [else] > [if "[currency]"="EUR"] > [then] > [text]priceDisplay=€[format 10.2f][EURcost][/format][/text] > [/then] > [else] > [if "[currency]"="JPY"] > [then] > [text]priceDisplay=¥[format 10.2f][JPYcost][/format][/text] > [/then] > [else] > [text]priceDisplay=£[format 10.2f][PRICE][/format][/text] > [/else] > [/if] > [/else] > [/if] > [/else] > [/if] -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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/ Donovan Brooke

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:

Problem: 3.0 doesn't update carts (1997) Size limit for tmpl editor ? (1997) Error - Search / Showif (2000) WebCat2b13MacPlugIn - More limits on [include] (1997) listfiles-looking for slick solution (1997) Duplicate Cart ID (2001) WC1.6 to WC2 date formatting (1997) [WebDNA] Search Site (2009) Summing fields (1997) Showif date > other date (2004) Possible Bug in 2.0b15.acgi (1997) Extended [ConvertChars] (1997) Emailer help....! (1997) Only charge card when product shipped ? (1997) Classified Ads 4 Sale (1998) Running _every_ page through WebCat ? (1997) Max Record length restated as maybe bug (1997) Webcatalog 4.0 - When will we be able to beta test it? (2000) WebCat2 - Getting to the browser's username/password data (1997) international time (1997)