Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -0,0 +1,20 @@
|
|||
(if (> (+ 5 4) 7)
|
||||
# then
|
||||
(print "5+4 > 7")
|
||||
# else
|
||||
(print "something has gone terribly wrong"))
|
||||
|
||||
(if (not true)
|
||||
{
|
||||
# this is a serie of expressions inside the 'then' block of the conditional
|
||||
(print "true is... not true?")
|
||||
(foo bar 5)
|
||||
(+ 5 4) }
|
||||
{
|
||||
# the 'else' block can also have multiple expressions in it
|
||||
(print "something")
|
||||
(print "is weird") })
|
||||
|
||||
# conditions can be used as expressions too
|
||||
(let n (if (> 5 6) "error" "5 < 6"))
|
||||
(print n)
|
||||
Loading…
Add table
Add a link
Reference in a new issue