| To: | <s-news@wubios.wustl.edu> |
|---|---|
| Subject: | Stupid question on if ... else ... |
| From: | "Jeffrey Wang" <jwang@xcaliber.com> |
| Date: | Mon, 18 Aug 2003 10:07:26 -0500 |
| Thread-index: | AcNa7EavSNNsnunKRg+w7NR7feRrLQKrUpIA |
| Thread-topic: | [S] Stirling Numbers |
For all my life, I used if ... else ... in the following syntax:
if (length(2) == 1) {
tmp = 1
}
else {
tmp = 2
}
However recently, this stopped working for me if this is sourced in as
a part of file (it still works if I run it from the script window). I had to
change it as follows in my file:
if (length(2) == 1) {
tmp = 1
} else {
tmp = 2
}
Can someone explain this to me what might be the cause? Thanks for any
hints in advance.
P.S. I am using S+ 6.1 release 1 on Windows 2000 if it helps.
----
Jeffrey Wang
Ronin Capital LLC
Chicago, IL 60604
Tel: (312) 244-5768
Fax: (312) 244-5836
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | double integral question again., zhang1 |
|---|---|
| Next by Date: | Re: Stupid question on if ... else ..., Spencer Graves |
| Previous by Thread: | double integral question again., zhang1 |
| Next by Thread: | Re: Stupid question on if ... else ..., Spencer Graves |
| Indexes: | [Date] [Thread] [Top] [All Lists] |