use if...else if...else block