storing a number in leonardo...

actually i am using a rfid reader and i can able see the value in my serial monitor using this code.
#include <SoftwareSerial.h>

SoftwareSerial mySerial(8, 9); // RX, TX

void setup()
{

Serial.begin(9600);
while (!Serial)
{
;
}
Serial.println(“rfid identity value!”);
mySerial.begin(9600);
}

void loop()
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}
bt i want to store the value of the rfid inside the microcontroller and i want to compare it with some other values.
now my prob is to store it in some variable how should i use it…possibly help me with a code to store.