Range expression in driver

I’m making a driver on the visibility of a collection according to the x location of an empty.

I want it ON when the locator is between values of 1 and 2

I tried this but it failed
var > 1 && var <2 + True

Why do you add True? Doing so will always result in a true value, regardless what var is. Additionally you use &&, but that’s the C/C++ way for the logical and. Blender’s driver expressions are python oriented and you should use “and”.
I’m not directly in front of blender now, but can you try
var > 1 and var <2?

I did this because I have no clue what am I doing. :slight_smile: Seriously, I don’t.

I had a guy at the office who helped me.
not (1 <= var < 2)