In Ruby, you can simply negate an expression by using "!" abc = 'abc' !abc #=> false Similarly, abc = 'abc' !abc #=> false !!abc #=> true Ruby's double-bang negates the negated statement, which almost always will give you true. a = 0 b = 1 c = true d = false !a #=> false The double bang 06 April 2013 technology