Yes I think that you have hit on the possible cause. I also had some problems with using "or" instead of "and" etc on my mail server when creating filtering rules. It would logically seem that you use "or", not "and", but the coding didn't work as desired. It is probably the same thing here.

I think the best solution would be for me to simplify the coding as my if ingroup = 1 or ingroup = 1 is a cumbersome way to do it especially if you have more then 2 groups to check. The kixtart example I think is far better.

I have it on my list of things to do to go through my scripts and optimise them as over the years, I have added more lines of codes and groups etc.

I also agree that I need to get into the habit of making my statements true. Thanks