結果 : if then else javascript one line