0
unless @a && @b
-- data here
end
我不想使用
if !(@a && @b)
如果您有任何建議,因爲除非和不工作。
unless @a && @b
-- data here
end
我不想使用
if !(@a && @b)
如果您有任何建議,因爲除非和不工作。
你真的自己解決了這個問題。使用括號:)
unless (@a && @b)
#...
end
什麼是不工作的意思?對我來說工作得很好 – 2013-03-12 11:49:53