[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: inline conditional assignment possible?
- From: Taj Khattra <taj.khattra@...>
- Date: Wed, 19 Nov 2003 23:42:16 -0800
On Wed, Nov 19, 2003 at 09:50:27PM -0800, Nick Trout wrote:
>
> You might also try:
>
> > s = true and print("hello")
> hello
> > s = nil and print("hello")
>
> i.e.
> s = project:FindSprite("Title") and print("we have a title")
>
unfortunately, this will clobber 's'
> s=1729 and print('got it')
got it
> =s
nil
-taj