Arduino Uno + RFID reader + 8ch Relay module + 8 ID cards

Hi,
I need control a 8ch relay module with a RFID reader module.
But, just one card will be actived a determinate relay.
Arduino Uno + RFID reader + 8ch Relay module + 8 ID cards.
How write this code???
TKS for any help!!!

Use an RFID library that matches your RFID reader to read the card ID. Start with an example sketch which reads the card ID. Compare the card ID to your 8 ID's. If there is a match, turn on the corresponding relay.