> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# 23 Pa.C.S. § 2742 — Costs.

- **Citation**: 23 Pa.C.S. § 2742
- **Node Type**: section
- **Jurisdiction**: Pennsylvania (state)
- **Code Body**: Pennsylvania Consolidated Statutes (Aug. 2026 snapshot) (Pa.C.S.)
- **Official Source**: [https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=23](https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=23)
- **Canonical URL**: [https://corpuslaw.us/codes/pennsylvania/title-23/chapter-27/section-2742](https://corpuslaw.us/codes/pennsylvania/title-23/chapter-27/section-2742)
- **Semantic URL**: [https://corpuslaw.us/codes/pennsylvania/title-23/chapter-27/section-2742](https://corpuslaw.us/codes/pennsylvania/title-23/chapter-27/section-2742)

## Hierarchy

Title 23 > Chapter 27

## Text

If the court finds that an action brought under section 2737 (relating to modification of agreement), 2738 (relating to enforcement of agreement) or 2739 (relating to discontinuance of agreement) was wholly insubstantial, frivolous or not advanced in good faith, the court may award attorney fees and costs to the prevailing parties.
