On Mar 26, 2011, at 3:10 AM, Scott Wallace wrote:
foundPlayer := ActiveWorld presenter reallyAllExtantPlayersNoSort detect: [:p |(p costume externalName = 'Cat') and: [p costume isInWorld])] ifNone: [nil]. foundPlayer ifNotNil: [ <proceed to do something to or with foundPlayer...> ]
Oops, left an extra right-paren in there by mistake. The correct code would be:
foundPlayer := ActiveWorld presenter reallyAllExtantPlayersNoSort detect: [:p |(p costume externalName = 'Cat') and: [p costume isInWorld]] ifNone: [nil]. foundPlayer ifNotNil: [ <proceed to do something to or with foundPlayer...> ]