Skip to content

Commit 6da65fb

Browse files
committed
update readme
1 parent f850ec2 commit 6da65fb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,25 @@ Here's how, for example, to implement a loop that displays the message hello wor
139139
p b
140140
? a ! 5 3
141141
```
142+
The conditions in minicode are quite powerful for typical languages of this class. You can compare and compare all data types with each other (although there are only two of them), but only in accordance with the type. You cannot compare a number with a string. You can also compare values that are in a variable. However, when specifying a variable, keep in mind that the minicode will first try to parse the value into a number, then if that doesn’t work, it will look to see if there is a variable with that name in memory, and if not, it will consider what you specified as a regular string.
143+
144+
For example, the following code will display only `just text` on the screen
145+
146+
```
147+
> a lol
148+
> b lol
149+
? a = b 6
150+
p a
151+
p b
152+
> c 245
153+
> d 345
154+
? c ! d 11
155+
p c
156+
p d
157+
> text just text
158+
p text
159+
```
160+
142161
You will find more examples in the folder -> test/examples
143162

144163

0 commit comments

Comments
 (0)