From 91f090dc12c472c47e67910aea259e708a6cdc06 Mon Sep 17 00:00:00 2001 From: DiamondNether90 Date: Fri, 10 Oct 2025 08:30:37 +1100 Subject: [PATCH] Booleans and if function --- docs/syntax.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/syntax.md b/docs/syntax.md index fe80176..bfaea7e 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -17,4 +17,16 @@ Example: `print var` Changes the value of an already created value. -Example `set var = "World"` \ No newline at end of file +Example: `set var = "World"` + +## if bool + +Runs code if a boolean is true. + +Example: +``` +create *1 bool = true +if bool { + set var = "BASM!" +} +``` \ No newline at end of file