How do you write an if greater than statement? I want two variables to detect if one of the variables is greater than the other and then subtract 1 from a third variable if so. Here is my code,
var population = 100;
var food = 0;
var happiness = 60;
function Update () {
if (var population) > var food;
var happiness - 0.01 * Time.deltaTime;
}