In A computers, it works fine. When I type "1", the Serial Monitor will keep printing very "Delay(3)" But when I use another computer. The If action will only do once.
Which IDE version do you use? What operating system does your other computer have that it doesn't work on? And which Arduino device do you use? We need several info to be able to help them!
I suspect the "another computer" is set to send line ending characters, like newline or return or both. After processing the '1' or '0' the next character is read (newline or return) and the latest character read is no longer '1' or '0'.