- Home /
Question by
Attapi0 · Jan 10, 2014 at 10:59 PM ·
javascriptoperator
Javascript And operator not working
Here's a little excerpt from my code
function LateUpdate() {
transform.Rotate(mouseMoveY,0,0);
if(currentrotX < 280 && > 65){
transform.Rotate(280,0,0);
}
}
This gives me the error "Assets/MouseLookY.js(17,30): BCE0044: expecting ), found '&&'. "
Comment
Best Answer
Answer by sparkzbarca · Jan 10, 2014 at 11:15 PM
if(currentrotX < 280 && > 65)
should be
if(currentrotX < 280 && CURRENTROTX > 65)
cant do that A compare B compare C
they have have to be 2 totally seperate statements