Barcode match

Good morning,
I am a new arduino user. I am trying to understand if it is possible to compare 2 scanned barcode using arduino. The idea is to scan the 1st barcode, then scan the 2 barcode and a green light turns on if the two bar codes are the same. I have seen how to connect arduino with a barcode reader, but I am missing the feasiblity of this check.

Please apologize me if I have posted this request in the wrong session.

Thank you

Michele

Show your current code so we can see what type of data you receive. E g char arrays or (puke) String.

For nul-terminated character arrays, you can use strcmp.