
-----------------------------------
Jesse Kazemi
Mon Jun 16, 2014 5:14 pm

I need help with boolean it wont run it
-----------------------------------
What is it you are trying to achieve?



What is the problem you are having?



Describe what you have tried to solve this problem



Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)








Please specify what version of Turing you are using


-----------------------------------
Tony
Mon Jun 16, 2014 7:12 pm

RE:I need help with boolean it wont run it
-----------------------------------
There's a preview bug that cleared the post, but I'll guess it has something to do with your post in another thread:
The Turing Walkthrough.

It looks like there's a confusion between boolean values, string literals "true" and "false", and boolean expressions. It might help to prompt user replies as "yes/no" instead.

[code]
var answer : string
answer := "yes"
if answer = "yes" then
  put "it was yes"
else
  put "it was something else"
end if
[/code]

-----------------------------------
Jesse Kazemi
Tue Jun 17, 2014 11:15 am

Re: I need help with boolean it wont run it
-----------------------------------
Thanks so much tony for the help

-----------------------------------
Jesse Kazemi
Tue Jun 17, 2014 2:32 pm

Re: I need help with boolean it wont run it
-----------------------------------
50 views and no replies
