---
title: Validated Booleans
---

Booleans are very simple things. Explicit validation is typically only needed for use in other validation or to gate it with conditions.

<CodeTabs>

```java !!tabs Java
public boolean mySimpleBoolean = true; // this will work fine.
public ValidatedBoolean myValidatedBoolean = new ValidatedBoolean(); // typically not needed; ValidatedBoolean might be used if you are making something like a ValidatedMap<String, Boolean>.
```

```kotlin !!tabs Kotlin
var mySimpleBoolean = true // this will work fine.
var myValidatedBoolean = ValidatedBoolean() // typically not needed; ValidatedBoolean might be used if you are making something like a ValidatedMap<String, Boolean>.
```

</CodeTabs>

### Conditions
`ValidatedBoolean` can be used as an input condition for a `ValidatedCondition`. See [Conditional Settings](../Validation#-conditional-settings-) to learn more.

<Callout>
See the documentation page <a target="_blank" rel="noopener" href="https://fzzyhmstrs.github.io/fconfig/-fzzy%20-config/me.fzzyhmstrs.fzzy_config.validation.misc/-validated-boolean/index.html">here 🗗</a>
</Callout>