in reply to Script failed with certain value in the variable
Your code doesn't compile. Please edit your question with your real code that we can test with :)