(please help)IR controller for robot switch case problem

but when i give the IR a value it move to it and dose not exit

Please exaplin what this means? What is it supposed to exit from and does not do?