Update Input Keyword
@@ -9,7 +9,7 @@ The `input` keyword allows you to get user input via stdin. When this line is re
|
|||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
We can make a simple [truth machine](https://esolangs.org/wiki/Truth-machine) by checking if the input is 0 or other.
|
We can make a simple [truth machine](https://esolangs.org/wiki/Truth-machine) by checking if the input is 0 or other.
|
||||||
```grnd
|
```py
|
||||||
input &str
|
input &str
|
||||||
equal $str "0" &cond # check if char is "0"
|
equal $str "0" &cond # check if char is "0"
|
||||||
if $cond %outonce # if char is 0, jump to the bottom script
|
if $cond %outonce # if char is 0, jump to the bottom script
|
||||||
|
|||||||
Reference in New Issue
Block a user