diff --git a/docs/language/index.rst b/docs/language/index.rst index f1b03ca..1cb196b 100644 --- a/docs/language/index.rst +++ b/docs/language/index.rst @@ -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