From: Marc Heiler Date: 2011-10-10T16:17:57+09:00 Subject: Re: Check for boolean status in ruby if islogged_in run_function_a else run_function_b end And of course inside the function you must set the islogged_in flag to true or false, depending on your conditions. This is the same in almost every programming language, are you absolutely new to programming? -- Posted via http://www.ruby-forum.com/.