I personally always put the condition in parentheses, but it's not required.
And as, Battlerifle said, these are the same:
Code:
if jump {}
if jump == true {}
if jump == 1 {}
if jump >= 0.5 {} //I guess?
Actually, your third example (and maybe your second example) won't work unless jump is a boolean (set to either true, false, 1, or 0). Because suppose jump is not a boolean, and suppose jump has a value of 3. It would then be substituted as follows:
Code:
if(3){ } // works, because anything >=.5 is regarded as true. 3>=.5, so 3 is regarded as true.
if(3==true){ }
if(3==1){ } // <-- notice the problem? hint: 3 is not equal to 1
if(3>=0.5){ } // yes, 3 is bigger than .5
So the third example is clearly wrong. But as for the second example... I'm not sure. The constant
true has a numerical value of 1, so by substitution it has the same problem as the third example. But it's possible that the compiler somehow regards ==true as >=0.5 (I don't know).