I have problems with this code. I have to add an alert but the complete code doesn\'t work although it seems correct and logical to me (if you need I can place the entire code i