Re: how to get the zero's out of a list
Re: how to get the zero's out of a list
- Subject: Re: how to get the zero's out of a list
- From: John W Baxter <email@hidden>
- Date: Fri, 9 Mar 2001 18:32:17 -0800
At 13:12 -0500 3/9/01, Cal wrote:
>
I am disappointed that the answers to such a question, asked by what
>
appears to be a novice, while offering something that works,
>
nevertheless include the use of variable names like "a", "l", and
>
"aL".
>
[Using "i", "1", and "l" in the same script fragment (and even in the
>
same line) makes it hard to distinguish what from what. The same can
>
be said for "i" and "a".]
And I was disappointed not to see at least one reply like
set testlist to {"0", "1", "0", "4"}
repeat with anItem in testlist
if contents of anItem is "0" then set contents of anItem to ""
end repeat
testlist
along with probably a sentence or three about those "contents of" phrases
(are both really needed in this case?...I just tossed them in to be "safe").
--John (we don't need no stinkin index) Baxter
--
John Baxter email@hidden Port Ludlow, WA, USA