Added alert message window for the result of if else statement