Code:
If (x > 4) And (x < 9) Then
[do something code here]
Endif
should fix it