I looked for a few minutes at all of my If statements and couldn't figure out what was wrong. It ended up being that the compiler was correct in that it didn't run into said Endif but it was in fact where it was supposed to be.Line 8: The following end condition is missing: Endif
The error was that I had used a EndProcedure instead of a ProcedureReturn.
Even though the compiler was stating fact the error was confusing to me.
Here is an example:
Code: Select all
Declare this()
this()
Procedure this()
If a=1
EndProcedure
EndIf
EndProcedure