結果 : algorithm for conditional statement