10 Replies Latest reply: Oct 16, 2013 11:10 AM by Stephen Daspit RSS

    mystery if then else error in script

      Hello,

       

      I'm having trouble with if/then/else in a script. I had this working in a different document, but I get script errors now. The exact script below throws the error. If I comment out the If/Endif statement, it runs fine. What am I missing (I know it's something painfully obvious, but I've been searching Google and the forums for ~60 mins with no luck).

       

      Once I solve the "outer" if/then, I need to work on the inner if/then, but one thing at a time!

       

       

      ifscripterror.gif

       

      Thanks!