How to read an ID from the serial monitor into an array?

I want to read an ID, something like that 243, 224, 31, 188 into an array and then compare it with an ID I hard-coded in my code. How can I go about that? Thanks!

Have you read Robin2's serial basics thread?

Thanks very much! That did the trick.