While admittedly so basic I nearly didn't post it, isn't this a legitmate answer to the asker's question?
Just want to make sure I'm following the community rules...
However, after you posted your answer, the OP commented on the question with:
I did try terminating my statement with a ; but that didn't work
My take on this is that since that comment from the OP, your answer is now 'not an answer', because the aim is to provide a solution to the OP's actual problem.
For that reason, I'd say the best course of action is now to convert the answer to a comment. If the missing semi-colon was the issue, then I'd have upvoted your answer, and of course closed the question as 'too localized'!