|
6 | 6 | <meta property="og:site_name" content="EndBASIC"> |
7 | 7 | <title>Documentation - EndBASIC</title> |
8 | 8 | <meta property="og:title" content="Documentation - EndBASIC"> |
9 | | -<meta name=description content="Introduction Launching the interpreter Writing your first program Loading and saving Getting help Language basics Case sensitivity Primitive types Arrays Arithmetic operators Comparison operators Logical operators Expressions Conditional statements While loops For loops Console Text manipulation Interactive interfaces Rendering graphics Efficient graphics rendering File system Drives and paths Drive providers Side-loading files Cloud service Accessing public content Signing up Logging in Uploading a program Publishing a program Privacy and security notes Hardware access GPIO Configuration AUTOEXEC."> |
10 | | -<meta property="og:description" content="Introduction Launching the interpreter Writing your first program Loading and saving Getting help Language basics Case sensitivity Primitive types Arrays Arithmetic operators Comparison operators Logical operators Expressions Conditional statements While loops For loops Console Text manipulation Interactive interfaces Rendering graphics Efficient graphics rendering File system Drives and paths Drive providers Side-loading files Cloud service Accessing public content Signing up Logging in Uploading a program Publishing a program Privacy and security notes Hardware access GPIO Configuration AUTOEXEC."> |
| 9 | +<meta name=description content="Introduction Launching the interpreter Writing your first program Loading and saving Getting help Language basics Case sensitivity Primitive types Arrays Arithmetic operators Comparison operators Logical operators Expressions GOTO Conditional statements While loops For loops Console Text manipulation Interactive interfaces Rendering graphics Efficient graphics rendering File system Drives and paths Drive providers Side-loading files Cloud service Accessing public content Signing up Logging in Uploading a program Publishing a program Privacy and security notes Hardware access GPIO Configuration AUTOEXEC."> |
| 10 | +<meta property="og:description" content="Introduction Launching the interpreter Writing your first program Loading and saving Getting help Language basics Case sensitivity Primitive types Arrays Arithmetic operators Comparison operators Logical operators Expressions GOTO Conditional statements While loops For loops Console Text manipulation Interactive interfaces Rendering graphics Efficient graphics rendering File system Drives and paths Drive providers Side-loading files Cloud service Accessing public content Signing up Logging in Uploading a program Publishing a program Privacy and security notes Hardware access GPIO Configuration AUTOEXEC."> |
11 | 11 | <meta name=author content="Julio Merino"> |
12 | 12 | <meta name=generator content="Hugo 0.92.1"> |
13 | 13 | <meta property="og:url" content="https://www.endbasic.dev/docs.html"> |
@@ -64,6 +64,7 @@ <h1 class="title display-4 font-weight-normal">Ready<br>Documentation█</h1 |
64 | 64 | <li><a href=#lang-comparison-ops>Comparison operators</a></li> |
65 | 65 | <li><a href=#lang-logical-ops>Logical operators</a></li> |
66 | 66 | <li><a href=#lang-expr>Expressions</a></li> |
| 67 | +<li><a href=#lang-goto>GOTO</a></li> |
67 | 68 | <li><a href=#lang-if>Conditional statements</a></li> |
68 | 69 | <li><a href=#lang-while>While loops</a></li> |
69 | 70 | <li><a href=#lang-for>For loops</a></li> |
@@ -388,7 +389,9 @@ <h2 id=lang-expr>Expressions</h2> |
388 | 389 | <div class=highlight><pre tabindex=0 class=chroma><code class=language-plain data-lang=plain>Ready |
389 | 390 | PRINT DTOI(RND() * 100.0) + 500 < 550 |
390 | 391 | FALSE |
391 | | -</code></pre></div><h2 id=lang-if>Conditional statements</h2> |
| 392 | +</code></pre></div><h2 id=lang-goto>GOTO</h2> |
| 393 | +<p><code>GOTO</code> is probably the most salient feature of a retro-looking BASIC interpreter… but unfortunately this is currently not supported due to the way the execution engine works. I have plans to add this and maybe even line numbers in a subsequent release, but for now you’ll have to stick to structured programming.</p> |
| 394 | +<h2 id=lang-if>Conditional statements</h2> |
392 | 395 | <p>EndBASIC supports conditional statements (<code>IF</code>) with zero or more alternate branches (<code>ELSE IF</code> and <code>ELSE</code>).</p> |
393 | 396 | <p>Here is how the most simple construct looks like:</p> |
394 | 397 | <div class=highlight><pre tabindex=0 class=chroma><code class=language-basic data-lang=basic><span class=kr>IF</span><span class=w> </span><span class=il>3</span><span class=w> </span><span class=o><</span><span class=w> </span><span class=il>5</span><span class=w> </span><span class=kr>THEN</span> |
|
0 commit comments