From 6a2c1ac3aec4315ac72f7e61cfc225720f2dec2c Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Thu, 30 Oct 2025 12:14:34 +0000 Subject: [PATCH] Update README --- README.md | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 4e79fe6..6e811ba 100644 --- a/README.md +++ b/README.md @@ -38,26 +38,6 @@ main func { } ``` -Use `if` and `while` for control flow. - -Note: Equality operators like `==`, `!=`, etc, etc aren't supported yet. This is a new project, after all. - -``` -main func { - if (true) { - println("It's true!") - } -} -``` - -``` -main func { - while (true) { - println("To infinity and beyond!") - } -} -``` - Set variables with `=`. ``` @@ -75,6 +55,29 @@ main func { } ``` +Use `if` and `while` for control flow. + +You can use the operators `==`, `!=`, `>`, `<`, `>=`, and `<=` to process data. + +``` +main func { + x = 5 + if (x == 5) { + println("It's true!") + } +} +``` + +``` +main func { + x = 0 + while (x < 1000) { + x += 1 + println(x) + } +} +``` + Note: If you'd like you can do this: ```