trouble with timed delays

brickparatrooper:
Hey all, I am trying to wrap my head around the whole timer thing instead of delays and I thought I had it understood when I came up with this. I am trying to turn a servo from 45 to 95 to 135 back to 95 and back to 45 with a .35 second delay.

I get the error
Skooter_01_servohead.ino: In function 'void loop()':
Skooter_01_servohead:17: error: expected primary-expression before '=' token
Skooter_01_servohead:17: error: expected `;' before ')' token
Skooter_01_servohead:21: error: lvalue required as left operand of assignment
Skooter_01_servohead:25: error: lvalue required as left operand of assignment
Skooter_01_servohead:29: error: lvalue required as left operand of assignment

It is always useful to Auto Format your code, not just to tidy it up but because it warns of extra left/right brackets and braces. This line was wrong in your codeif(currentMillis - previousMillis) = pause)The display of matching brackets (or not) should indicate that there is a mismatch. Incidentally, I think that jamming the if statement against the opening bracket does not help in seeing errors either.