---
library: "bootstrap"
slug: "Condition"
name: "Condition"
ref: "Condition#b480"
hash: "sema:Condition#mh:SHA-256:b480f3c4da11ba6d86f6d14e0fb8521268f3c4bb38588460f7ff4253ad8d78d5"
type: "Data Structures"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Condition"
---

# Condition

Interface for patterns that evaluate to a boolean truth-value

Infrastructure · Data Structures

## Mechanism

A marker interface (Trait). Patterns implementing 'Condition' MUST provide an evaluation logic that returns a strict Boolean (True/False) based on provided context.

## Invariants

- Boolean Output: Result must be binary.
- Decidability: Must always return a value (or error), never hang.

## Failure modes

- Ambiguity: Returning 'Maybe' or probabilistic float where Boolean is required.

## Where this came from

—

## Used by

- [Check](https://semahash.org/vocabularies/bootstrap/patterns/Check.md) (references)
- [Contract](https://semahash.org/vocabularies/bootstrap/patterns/Contract.md) (accepts)
- [DepthGovernor](https://semahash.org/vocabularies/bootstrap/patterns/DepthGovernor.md) (references)
- [FeatureFlag](https://semahash.org/vocabularies/bootstrap/patterns/FeatureFlag.md) (references)
- [Gate](https://semahash.org/vocabularies/bootstrap/patterns/Gate.md) (references)
- [HeldRelease](https://semahash.org/vocabularies/bootstrap/patterns/HeldRelease.md) (references)
- [Loop](https://semahash.org/vocabularies/bootstrap/patterns/Loop.md) (accepts)
- [Refine](https://semahash.org/vocabularies/bootstrap/patterns/Refine.md) (accepts)
- [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md) (references)
- [TriGate](https://semahash.org/vocabularies/bootstrap/patterns/TriGate.md) (references)
- [WhyClimb](https://semahash.org/vocabularies/bootstrap/patterns/WhyClimb.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Condition#b480
- Hash: sema:Condition#mh:SHA-256:b480f3c4da11ba6d86f6d14e0fb8521268f3c4bb38588460f7ff4253ad8d78d5

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Condition
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Condition.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
