'ElseIf' must be preceded by a matching 'If' or 'ElseIf'
An ElseIf statement occurs without a corresponding If statement. ElseIf must be preceded by an If statement or another ElseIf statement.
Error ID: BC36005
To correct this error
If this If block is part of a set of nested control structures, make sure each structure is properly terminated.
Verify that other control structures nested within this If block are properly terminated.
Ensure that this If block is correctly formatted.