'#ElseIf' must be preceded by a matching '#If' or '#ElseIf'
#ElseIf is a conditional compilation directive. An #ElseIf clause must be preceded by a matching #If or #ElseIf clause.
Error ID: BC30014
To correct this error
Check that a preceding #If or #ElseIf has not been separated from this #ElseIf by an intervening conditional compilation block or an incorrectly placed #End If.
If the #ElseIf is preceded by a #Else directive, either remove the #Else or change it to an #ElseIf.
If everything else is in order, add an #If directive to the beginning of the conditional compilation block.