嵌套if函數區間取值?