On Sat, 1 Apr 2006, Austin Ziegler wrote: >> harp:~ > ruby -e' 3.times{ p( @x ? nil : @x=42) } ' >> 42 >> nil >> nil > > ruby -e'first = true; 3.times { p first &&= nil }' > > The opposite of ||= is &&=; it may not be appropriate for the > requested purpose, though. It allows for a "change only if set" sort > of test. I think I've used it *once*. well heck - just used it for the first time today! i guess the OP didn't actually want the literal opposite though... regards. -a -- share your knowledge. it's a way to achieve immortality. - h.h. the 14th dali lama