doc/tutorial/basics: add basics tutorial
Change-Id: I350244d6db5e20be4ab3913dc864f61923b2738f
diff --git a/doc/tutorial/basics/conditional.md b/doc/tutorial/basics/conditional.md
new file mode 100644
index 0000000..5fc6a4f
--- /dev/null
+++ b/doc/tutorial/basics/conditional.md
@@ -0,0 +1,26 @@
+[TOC](Readme.md) [Prev](fieldcomp.md) [Next](coalesce.md)
+
+# Conditional Fields
+
+Field comprehensions can also be used to
+add a single field conditionally.
+
+Converting the resulting configuration to JSON results in an error
+as `justification` is required yet no concrete value is given.
+
+
+<!-- CUE editor -->
+```
+price: float
+
+// Require a justification if price is too high
+justification: string if price > 100
+
+price: 200
+```
+
+<!-- result -->
+```
+price: 200
+justification: string
+```
\ No newline at end of file