Forum Discussion

shahid24's avatar
shahid24
Contributor
7 years ago

Need help with this syntax errror

Hi,


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

 

Thanks

Shahid

 

2 Replies

  • tristaanogre's avatar
    tristaanogre
    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...

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    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.