From: Thomas Wieczorek Date: 2007-07-31T02:20:17+09:00 Subject: Re: array.include? 2007/7/30, Jeffrey Bowen : > if @status_array.include? @status_number > else > @status_array << @status_number > end > > Is there an include?-not > function that would eliminate the else? > You can use _not_ in the if statement: if not @status_array.include? @status_number @status_array << @status_number end or @status_array << @status_number if not @status_array.include? @status_number or like Dan did it with _unless_