I figured out the if then else thing. The manual listed the else on the same line as the if. That is how I put it. Moved the then to the next line and all is well.