Author Topic: A test did not resolve true or false. What does this mean?  (Read 4019 times)

0 Members and 1 Guest are viewing this topic.

Offline Java

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Here’s my code...
Define whatsmyname()
Prgm
Disp “you’re “,name
RequestStr “would you like a name change?”,n
If yes Then
RequestStr “New name:”,name,0
Else
Text “ok, fair enough.”,0

Don’t judge me please. I’m new to programming and This is my first program.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: A test did not resolve true or false. What does this mean?
« Reply #1 on: May 03, 2020, 10:25:45 am »
You need something like:
Code: [Select]
If n="yes" Then
Because you are telling Request to store the input string to variable n.

Also, you can post code in [code]<your code here>[/code]

Offline Java

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: A test did not resolve true or false. What does this mean?
« Reply #2 on: May 03, 2020, 10:50:36 am »
Thank you very much! 5 stars right here...