return if vs if return ruby on rails code example
Example: ruby unless
unless number.even?
# runs if `number` is NOT even
else
# runs if `number` is even
end
unless number.even?
# runs if `number` is NOT even
else
# runs if `number` is even
end