input from barcode

thanks john but how do i compaire them ... in other words how do i do it

somthing like

if (dataRead () = 1234567){Serial.println(" [Barcode in database]")}: