This #else Does Not Have a Matching #If Preceding It Error

An extra #else keyword was used in an#If statement (conditional compilation) or an #else statement is used where no #if preceded it.

# Example

An #else keyword was used instead of an Else keyword in an If statement.

Dim theNumber As Integer
Dim digits As Integer
theNumber=33
If theNumber<10 Then
digits=1
#else //should be else
digits=3
End If

# See Also

#If, If statements.