Skip to content

Commit

Permalink
docs: sync docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Feb 9, 2024
1 parent c12b17a commit 2a41d0e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/syntax/types/boolean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Boolean

The `boolean` type can be used to define variables that accept boolean input.

## Basic

Basic syntax for the `boolean` type:

```yaml
variables:
- name: AcceptedToS
type: boolean # Set the type to boolean
description: Do you accept the terms of service?
template: |-
You have {{ if .AcceptedToS }}accepted{{ else }}not accepted{{ end }} the terms of service.
```

0 comments on commit 2a41d0e

Please sign in to comment.