Updating documentation for the new cond order

This commit is contained in:
Christopher Allan Webber 2013-04-01 10:34:36 -05:00
parent 9416422330
commit edf33a08b4

View File

@ -213,9 +213,12 @@ called "cond". In python, you might do something like::
In hy, you would do::
(cond
(> somevar 50) (print "That variable is too big!")
(< somevar 10) (print "That variable is too small!")
true (print "That variable is jussssst right!"))
((> somevar 50)
(print "That variable is too big!"))
((< somevar 10)
(print "That variable is too small!"))
(true
(print "That variable is jussssst right!")))
What you'll notice is that cond switches off between a some statement
that is executed and checked conditionally for true or falseness, and