If you only care about hour boundaries then the built-in @HOUR macro is simplest/easiest:
If @HOUR >= 13 And @HOUR < 17 Then
...etc