Both work here.
Code:
A=5:B=10:w1=7

If w1>A And w1<B 
   Debug "w1>A And w1<B"
EndIf

If w1>A 
  If w1<B 
    Debug "w1>A And w1<B" 
   EndIf
EndIf