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