Relevance expression for a range of IP addresses

I asked a similar question a couple of months ago, but for some reason I cannot get this relevancy to work. I am trying to create groups of site for deployment based on site number. Our IP scheme uses the site number in the 3rd octet, i.e. site 54 has IP’s 10.102.54.0/24. Easy enough. I would like to a group to contain, for example, sites 1 - 65, i.e. 10.102.1.0/24 - 10.102.65.0/24.
This is the relevance expression which I thought would work, but isn’t:
exists ( cidr string of ip interfaces of network ) whose (( it >= "10.102.1.0/24" as string ) AND ( it <= "10.102.65.0/24" as string ))
When I run relevance though, I devices from sites 117 and 172. Does anyone have any thoughts?

Thanks

as version only works if you strip the CIDR number (if they are all /24, you can just drop it and the last octect… if you have other masks, there is some complex bit masking you can do to calculate membership.

If you want to work that complicated bit stuff, this thread has a ton of great techniques: