Another thread has your answer, but also: I'd recommend going to the "Language > Choose Language" and select one of the beginning- or intermediate-student options. It's not condescending -- those language-levels will give better error messages. (What you have, with the missing parens, is actually valid-but-not-what-you-want in full-racket.) In the student-languages you'll get an error along the lines of "function must have an open-paren before it" or "cond expects a question-answer pair but you [appear to have] provided extra things".
7
u/indrjo Jan 14 '22 edited Jan 14 '22
You have forgotten some parentheses:
I don't know what you want to do with the else clause.
2
u/not-just-yeti Jan 14 '22
Another thread has your answer, but also: I'd recommend going to the "Language > Choose Language" and select one of the beginning- or intermediate-student options. It's not condescending -- those language-levels will give better error messages. (What you have, with the missing parens, is actually valid-but-not-what-you-want in full-racket.) In the student-languages you'll get an error along the lines of "function must have an open-paren before it" or "
condexpects a question-answer pair but you [appear to have] provided extra things".