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()

while (!Serial)
Serial.println(“rfid identity value!”);

void loop()
if (mySerial.available())
if (Serial.available())
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.