Return false if no false value is provided.

This commit is contained in:
Chris Eppstein 2010-11-15 03:47:57 -08:00
parent 2cff4cc775
commit d4a0484922

View File

@ -1,9 +1,9 @@
module Compass::SassExtensions::Functions::If module Compass::SassExtensions::Functions::If
def if(truth, if_true, if_false) def if(truth, if_true, if_false = nil)
if truth.to_bool if truth.to_bool
if_true if_true
else else
if_false if_false || Sass::Script::Bool.new(false)
end end
end end
end end