lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Oct 25, 2006 at 09:37:18AM -0700, Mark Edgar wrote:
> Personally, the standard Lua idiom works well for me:
> 
> assert( ( true and 'a' or 'b' ) == 'a' )
> assert( ( nil and 'a' or 'b' ) == 'b' )

For me, too, now that I know about it!

Thanks,
Sam