Re: if then ....
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57831
interpreted = N
texte = Else is NOT needed, also change your if statement to have 2 (( and )) like:[if (("[setCurrency]"=3D"JPY") | ("[setCurrency]"=3D"EUR") |("[setCurrency]"=3D"USD"))]Then it should work as expected.NitaiOn 14/5/04 2:35 PM, "Alan White"
wrote:> Hi>=20> Can anyone tell me if I *have* to use "else" in an if statement? I have =the> following code but the else is redundant.>=20> [!] -- Check for currency switch -- [/!]> [if ("[setCurrency]"=3D"JPY") | ("[setCurrency]"=3D"EUR") |> ("[setCurrency]"=3D"USD")]> [then]> [!] -- Set New Currency -- [/!]> [writefile conversionsFolder/[cart].txt]> [raw][text]currency=3D[setCurrency][/text][/raw]> [/writefile]> [/then]> [else]> [/else]> [/if]>=20> [!] -- Get Currency -- [/!]> [include file=3DconversionsFolder/[cart].txt]>=20> Any revisions are welcome although it does what it says on the box...>=20> Cheers> Alan>=20>=20> -------------------------------------------------------------> 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/>=20--=20Tools to energize your businessWeb Content Management =ABRedakto=BB & eBusiness SystemsComputerOil=AE AGDammstrasse 75400 Baden / SwitzerlandTelefon +41 (0)844 44 55 66info@computeroil.comhttp://computeroil.com-------------------------------------------------------------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:
Else is NOT needed, also change your if statement to have 2 (( and )) like:[if (("[setCurrency]"=3D"JPY") | ("[setCurrency]"=3D"EUR") |("[setCurrency]"=3D"USD"))]Then it should work as expected.NitaiOn 14/5/04 2:35 PM, "Alan White" wrote:> Hi>=20> Can anyone tell me if I *have* to use "else" in an if statement? I have =the> following code but the else is redundant.>=20> [!] -- Check for currency switch -- [/!]> [if ("[setCurrency]"=3D"JPY") | ("[setCurrency]"=3D"EUR") |> ("[setCurrency]"=3D"USD")]> [then]> [!] -- Set New Currency -- [/!]> [writefile conversionsFolder/[cart].txt]> [raw][text]currency=3D[setCurrency][/text][/raw]> [/writefile]> [/then]> [else]> [/else]> [/if]>=20> [!] -- Get Currency -- [/!]> [include file=3DconversionsFolder/[cart].txt]>=20> Any revisions are welcome although it does what it says on the box...>=20> Cheers> Alan>=20>=20> -------------------------------------------------------------> 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/>=20--=20Tools to energize your businessWeb Content Management =ABRedakto=BB & eBusiness SystemsComputerOil=AE AGDammstrasse 75400 Baden / SwitzerlandTelefon +41 (0)844 44 55 66info@computeroil.comhttp://computeroil.com-------------------------------------------------------------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/
"Nitai @ ComputerOil"
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:
Emailer (1997)
creator code (1997)
WebDNA 6.0 & MAC OS X Server 10.4.10 (2007)
Keep away (1997)
autosensing lanague selection (1997)
Multi shift click (1999)
[protect problem] (2004)
How many Databases can I open? (2003)
Maybe minor bug report (1997)
Stopping bad HTML propagation ? (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Re:2nd WebCatalog2 Feature Request (1996)
[WebDNA] Set a secure cookie ??? (2016)
Search returns all, not 20 (1997)
Clearing orders and database help! (1997)
WebCatalog NT beta 18 now available (1997)
Loosing Quantity (2000)
OT: WebDNA and LINUX (2004)
chat opinion ... (2002)
2 easy questions re: [showif] and [sendmail] (1997)