How to check if this is the first time running a game

Hi,

I am trying to do an if else statement to check at startup whether this is the first time the game is played or not.
If it is the first time, then I want to set my variable TAPS to 1000 and if it is not the first time playing then I want the TAPS variable to retrieve this from the PlayerPrefs. Any tips or suggestions would be great!

#pragma strict

static var TAPS :int;
var PlayedBefore;

function Awake(){

PlayedBefore = PlayerPrefs.GetInt(“PlayedBeforeSave”);

// Checks if this is the first time you play

if(PlayedBefore == 0) {
	PlayedBefore = 1;
    PlayerPrefs.SetInt("PlayedBeforeSave", PlayedBefore);
	TAPS = 1000;
	PlayerPrefs.SetInt("TapsSave", TAPS);
	
	// Checking the values
	
	Debug.Log("PlayedBefore = " + PlayedBefore);
	Debug.Log("TAPS = " + TAPS);
	
} else {
	// Sets how many TAPS are stored
	TAPS = PlayerPrefs.GetInt("TapsSaves");
	
	// Checking the values
	
	Debug.Log("PlayedBefore = " + PlayedBefore);
	Debug.Log("TAPS = " + TAPS);
}

}

function Update (){

}

thanks for the help!

i got it working like this, i had a typo in my save playerprefs! doh…

#pragma strict

static var TAPS :int;
var PlayedBefore;


function Awake(){

PlayedBefore = PlayerPrefs.GetInt("PlayedBeforeSave");
Debug.Log("PlayedBefore = " + PlayedBefore);

// Checks if this is the first time you play

	if(PlayedBefore == 0) {
		PlayedBefore = 1;
	    PlayerPrefs.SetInt("PlayedBeforeSave", (PlayedBefore));
		TAPS = 1000;
		PlayerPrefs.SetInt("TapsSave", (TAPS));
		
		// Checking the values
		
		Debug.Log("PlayedBefore = " + PlayedBefore);
		Debug.Log("TAPS = " + TAPS);
		
	} else {
		// Sets how many TAPS are stored
	    TAPS = PlayerPrefs.GetInt("TapsSave");
		
		// Checking the values
		
		Debug.Log("PlayedBefore = " + PlayedBefore);
		Debug.Log("TAPS = " + TAPS);
	}
	
}


function Update (){


}