i am sorry if this is really newb, but i am new to programming and ruby 
in general

in my previous thread "disappearing hash values" it was pointed out to 
me that a new if is a new scope

how do i update a second if with the results from a first

ie

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


thanks

-- 
Posted via http://www.ruby-forum.com/.