Thanks everyone for the answers. I just wrote exactly the same mail as
Cole did (starting with the "Looks like ..." part omitting the showers
:-), but Cole was faster.
Valentin
Cole Tierney wrote:
At 12:47 PM -0400 10/7/05, Cole Tierney wrote:
on memberExists (someName)
return (member(someName).membernum > 0) -- only for dir < 10
return (not voidP(member(someName))) -- only for dir >=10
end
Here's the obvious/ugly way that you probably would like to avoid:
on memberExists (someName)
if the scriptExecutionStyle < 10 then return
(member(someName).membernum > 0)
else return (not voidP(member(someName)))
end
Now I feel like taking a couple showers!
Looks like Tom's got the best approach:
on memberExists name
tMemRef = member(name)
if voidP(tMemRef) then return FALSE
else return (tMemRef.number > 0)
end
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]