You definitely can use else with unless . E.g.: x=1 unless x>2 puts "x is 2 or less" else puts "x is greater than 2" end.
確定! 回上一頁