Please help i have scripting problem

Here is a script i get error :

var SodaPerfab : GameObject;
var CookedMealPerfab : GameObject;

//Varibles
public static var Foods : float = 0;
//Mission Objects
var NextDayOBJ : GameObject;

//Booleans
var MissionGUI : boolean;
function OnGUI() {
	if(MissionGUI == true){
		GUI.Box(Rect(0,0,Screen.width,Screen.height), "Need Food :" + " 6 " + " / " + "You Have :" + Foods);
	}
	if(Foods =< 6){
		GUI.Box(Rect(0,0,Screen.width,Screen.height), "You need to find cave");
		MissionGUI = false;
	}
}
function Update(){
	if(Foods =< 6){
		NextDayOBJ.active = true;
	}

}

If you look at the errors you can see where the parser finds invalid code.

if(Foods =< 6){
          ^ Errors start here!

I think you mean “<=” the less than or equal to operator.

Edit: and the same again on line 21.

Agreeing with Kelly Thomas above here, hence the 1up fromme, but here`s the code rehashed to be correct for use.

    var SodaPerfab : GameObject;
    var CookedMealPerfab : GameObject;
     
    //Varibles
    public static var Foods : float = 0;
    //Mission Objects
    var NextDayOBJ : GameObject;
     
    //Booleans
    var MissionGUI : boolean;
    function OnGUI() {
    if(MissionGUI == true){
    GUI.Box(Rect(0,0,Screen.width,Screen.height), "Need Food :" + " 6 " + " / " + "You Have :" + Foods);
    }
    if(Foods <=6){
    GUI.Box(Rect(0,0,Screen.width,Screen.height), "You need to find cave");
    MissionGUI = false;
    }
    }
    function Update(){
    if(Foods <= 6){
    NextDayOBJ.active = true;
    }
     
    }