I believe it's pretty easy to fix this.
The first line, where it's supposed to say "if", it's saying "i f", there's a space between the 'I' and the 'F' that shouldn't be there, just remove that and save, and it should in theory work (correct me if I'm wrong, Lua pro's).