@proteek take a look at the sketch in this thread Blynk for Beginners and help with your project
The global variable I use for the flag is:
bool ONstatus = false;
Look through the if statements to see how the ONstatus flag is used to ensure events only happen once etc.
Shout if you need further assistance when you have looked through the sketch.