June 2018 Update

This commit is contained in:
Ingy döt Net 2018-06-22 20:57:24 +00:00
parent ba8067c3b7
commit 22f33d4004
5278 changed files with 84726 additions and 14379 deletions

View file

@ -0,0 +1,2 @@
>> if 10 > 2 [print "ten is bigger"]
ten is bigger

View file

@ -0,0 +1,2 @@
>> either 3 > 2 [print "Three larger"][print "Nope!"]
Three larger

View file

@ -0,0 +1,22 @@
n: 50
case [
n < 10 [print "small number"]
n < 100 [print "medium number"]
n < 1000 [print "large number"]
true [print "none of these"]
]
medium number
;CASE/ALL Prints all that are true
n: 50
case/all [
n < 10 [print "small number"]
n < 100 [print "medium number"]
n < 1000 [print "large number"]
true [print "none of these"]
]
medium number
large number
none of these

View file

@ -0,0 +1,17 @@
switch "india" [
"a" [print "string"]
23 [print "integer"]
"India" [print "The country India"]
]
The country India
switch/default "U.S." [
"a" [print "string"]
23 [print "integer"]
"India" [print "The country India"]
][
print "no match"
]
no match