Encyclopedia > Precondition

  Article Content


A precondition is a fact that must always be true just prior to the execution of some section of code. Preconditions are sometimes tested using assertions within the code itself. Often, preconditions are simply included in the documentation of the affected section of code.

Related: Design by contract, Postcondition

All Wikipedia text is available under the terms of the GNU Free Documentation License

  Search Encyclopedia

Search over one million articles, find something about almost anything!
  Featured Article
The problem of evil

... evil yet, does not imply that God does not intend to eliminate evil. In fact, it is often considered to be a good thing that God has not eliminated evil because one of ...