Ask a Question

Need help with this syntax errror


Need help with this syntax errror


Please can someone let me know why this syntax error is occuring.






Esteemed Contributor

I can't be certain... but it could be your "Else If"... change that to ElseIf (no space) and see if that works...

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Community Hero



I agree with Robert.

Also, if the reason of the syntax error is not clear, you can hover the mouse pointer over the error icon in the editor gutter. The flashing tooltip will appear and if you are a fast reader 🙂 you can read the message there. Quite often it explains the reason of the error quite well.

  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
Showing results for 
Search instead for 
Did you mean: