It seemed to work properly for me:

I used

Code:
and not I_SettlementOwner XXX = greek_cities
Where XXX was a settlement not owned by the greeks, and that line returned True.

and I used
Code:
and I_SettlementOwner XXX = greek_cities
With XXX not owned by the greeks and it returned False.