RAD Studio
ContentsIndex
PreviousUpNext
E2054: Misplaced else (C++)

The compiler encountered an else statement without a matching if statement. 

Possible Causes

  • An extra "else" statement
  • An extra semicolon
  • Missing braces
  • Some syntax error in a previous "if" statement

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!