def matching(method, objects, continuous, thingo):
            if method is not None:
                if thingo in method: return 1
                else: return 0
            else:
                if thingo in objects or thingo in continuous: return 1
                else: return 0