CS_TBL #1 "Else" is not a scope, but an additional command of the IF statement.So, correct indenting is: If [..] ElseIf [..] Else [..] EndIf Incorrect indenting is: If [..] ElseIf [..] Else [..] EndIf Not to mention: If [..] ElseIf [..] Else [..] EndIf