Die korrekte Syntax hierfür
If Timer1 < Y
Then Portc.0 = 1
Else Portc.0 = 0

wäre

If Timer1 < Y Then
Portc.0 = 1
Else
Portc.0 = 0
End If

Gruß

Rolf