? MAKE "num RANDOM 1 ? IF [:num = 1] [print "Number is one.] [print "Number is zero.] [:num = 1] is neither FALSE nor TRUE!
Why won’t this work? I’m using Imagine LOGO.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s been a long time since I used LOGO but I seem to recall that the condition didn’t have square brackets around it.
You should try something like:
ifelseis probably required for the one-or-the-other variant and I think you may need (although this may depend on your dialect) even more square brackets for a sentence with spaces 🙂