Computer Science Canada Help with the error- "Syntax error at 'End of File'. expected 'end if'" |
Author: | jonzey887 [ Sun May 04, 2014 4:32 pm ] | ||
Post subject: | Help with the error- "Syntax error at 'End of File'. expected 'end if'" | ||
What is it you are trying to achieve? A tic-tac-toe game with a mainmenu What is the problem you are having? when i try to run it, it tells me, Syntax error at 'End of File'. expected 'end if Describe what you have tried to solve this problem putting and taking away 'end if's Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using Turing 4.1.1a |
Author: | Insectoid [ Sun May 04, 2014 4:51 pm ] | ||||
Post subject: | RE:Help with the error- "Syntax error at \'End of File\'. expected \'end if\'" | ||||
Every if statement needs an end-if. For example,
You need to do this for every single if. The only exceptions are elsifs and elses- you only need one end if for all of the conditions associated with one if. For example,
|
Author: | TWizard [ Thu May 08, 2014 2:43 pm ] |
Post subject: | RE:Help with the error- "Syntax error at \'End of File\'. expected \'end if\'" |
Your program is missing a few end if's. i spy near the bottom. How ever, insectoid is correct. The Turing language requires end's anywhere you put a beginning, this means. for's, if's, loop's, procedures, etc. Unlike python or some other languages. |