Which theory maintains that an idea is true if it works or settles the problem it deals with?

Which theory maintains that an idea is true if it works or settles the problem it deals with?