Update If Keyword
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user