Possible Duplicate:
Changing the value of a variable to what it might already be
Which is better:
if(value != 1){
value = 1
}
or
value = 1
(This is for a function that is in an animation loop, so its constantly being called, don’t know if this is important or not, but thought that I should include that info…)
This is remarkably similar to a story on Computer Stupidities:
In your code, regardless of the original value of
value, it will always be1by the end. So just set it that way.