結果 : algorithm for if statement