Originally Posted By: qwerty
We need to see the entire line from your script that causes the problem.

Obviously yes, since the error message clearly says it's an if-statement causing the problem.