More specifically, || returns the second operand when the first operand =
is "falsy" -
logically false. Both nil and false are logically false.

So if "weight" were either nil OR false, then it would be reassigned.

Michael Edgar
adgar / carboni.ca
http://carboni.ca/

On Mar 21, 2011, at 12:09 AM, Paul Sholtz wrote:

> What I think this code means, is that the value that will be assigned =
to
> "weight" will be either (a) "weight" (if weight has already been
> assigned) or else (b) if "weight" is presently nil, then the value 100
> will be assigned to "weight" instead.
>=20
> Is this correct?