Feedback
Missing End If reports unrelated For loop errors
- Status
- Fixed
- Fixed in
- v26.8.6
- Source discussion
- https://forum.objo.dev/d/933-compiler-bad-message-for-missing-end-if
- Last updated
- 2026-08-29
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
When a multiline If inside a For or For Each loop is missing its End If, the compiler reports that Next has no matching For and then reports that the loop is missing Next. It should instead identify the missing End If without cascading into unrelated loop diagnostics.