in reply to unknown syntax error

There is a missing curly brace at line 60 to end if block.