if then ....

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57830
interpreted = N
texte = Hi Can anyone tell me if I *have* to use "else" in an if statement? I have the following code but the else is redundant. [!] -- Check for currency switch -- [/!] [if ("[setCurrency]"="JPY") | ("[setCurrency]"="EUR") | ("[setCurrency]"="USD")] [then] [!] -- Set New Currency -- [/!] [writefile conversionsFolder/[cart].txt] [raw][text]currency=[setCurrency][/text][/raw] [/writefile] [/then] [else] [/else] [/if] [!] -- Get Currency -- [/!] [include file=conversionsFolder/[cart].txt] Any revisions are welcome although it does what it says on the box... Cheers Alan ------------------------------------------------------------- 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 then .... ( Alan White 2004)
  2. Re: if then .... ( "Nitai @ ComputerOil" 2004)
  3. if then .... ( Alan White 2004)
Hi Can anyone tell me if I *have* to use "else" in an if statement? I have the following code but the else is redundant. [!] -- Check for currency switch -- [/!] [if ("[setCurrency]"="JPY") | ("[setCurrency]"="EUR") | ("[setCurrency]"="USD")] [then] [!] -- Set New Currency -- [/!] [writefile conversionsFolder/[cart].txt] [raw][text]currency=[setCurrency][/text][/raw] [/writefile] [/then] [else] [/else] [/if] [!] -- Get Currency -- [/!] [include file=conversionsFolder/[cart].txt] Any revisions are welcome although it does what it says on the box... Cheers Alan ------------------------------------------------------------- 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:

Webcatalog-firesite and [referrer] tag (1997) WebCatalog can't find database (1997) Converting Esiting Html Table Forms to WebCat (1997) headers (2004) Summing results of a nested search (2006) X etc.... (1999) can WC render sites out? (1997) RE: Problems with shopping cart (1997) NetCloak, FireSite and PIXO (2000) can WC render sites out? (1997) SKU (1997) WebCatalog 4.0 ? (2000) Applescript, WebDNA, and PDF (1997) pdf files? (2001) Webcat run amuk (2002) Can't test the beta (2000) [isfile] ? (1997) RE: OK, here goes... (1997) Error handling for accountNum (1997) SET (1998)