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:

RE: Ongoing group search problems ... (1997) emailer w/F2 (1997) Windows nt service pack 3 upgrade (1997) Where's Cart Created ? (1997) Opinion Poll Please (2002) Sku numbers (1997) fixed date problem (1997) [WebDNA] OPENDKIM (2014) updating checkbox in a db (1998) Some shell fun (2004) Emailer (1998) The BUG is BACK -- leading < character (1998) [WebDNA] An unknown error occured // Deadlock avoided (2011) HEADER AND FOOTER (1997) Can he do that? (1998) Re:Variable Math (1998) [foundItems] context problem (2000) Numbers and Numbers and Me (1999) Roundup function? (1997) Re:no [search] with NT (1997)