From: Logan Capaldo Date: 2006-05-25T03:28:33+09:00 Subject: Re: ifs and scope On May 24, 2006, at 2:19 PM, Jeremy Tregunna wrote: # "declare" firstif in an enclosing scope firstif = nil >> if (something) >> #do a bunch of stuff >> firstif = TRUE >> end >> >> if (somethingelse && firstif) >> # the above always fails since the second if doesn't see firstif) >> #do other stuff that is dependent on the first bunch of stuff >> firstif = FALSE >> end >