From 3baf3764c180e3fed7eb41af323ed37390cc7638 Mon Sep 17 00:00:00 2001 From: Marvin Wendt Date: Fri, 9 Feb 2024 15:08:02 +0100 Subject: [PATCH] docs: added boolean type docs --- docs/syntax/types/boolean.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/syntax/types/boolean.md diff --git a/docs/syntax/types/boolean.md b/docs/syntax/types/boolean.md new file mode 100644 index 0000000..b8d2c92 --- /dev/null +++ b/docs/syntax/types/boolean.md @@ -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. +```