That works, it's a conditional which returns true when the settlement specified is controlled by the specified faction.