From 69e3866f7a666e7fedb74c4b63ee31f39fa7e7d0 Mon Sep 17 00:00:00 2001 From: DiamondNether90 Date: Fri, 9 Jan 2026 17:42:08 +1100 Subject: [PATCH] Update If Keyword --- If-Keyword.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/If-Keyword.md b/If-Keyword.md index a9dfe79..c990f3d 100644 --- a/If-Keyword.md +++ b/If-Keyword.md @@ -2,10 +2,11 @@ Keyword: `if` Syntax: `if $bool %line` -Time Complexity: `O(1)` (average case or line number), `O(n)` (worst case with labels), where `n` is the number of labels created. +Average Time Complexity: `O(1)` + +Worst Case Time Complexity: `O(n)` ## Overview - The `if` keyword allows you to jump to a label or line if a condition is true. It is a core part of the ground programming language, as it would not be [Turing Complete](https://en.wikipedia.org/wiki/Turing_completeness) without. ## Example usage