Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: Java on May 02, 2020, 06:14:24 pm

Title: A test did not resolve true or false. What does this mean?
Post by: Java on May 02, 2020, 06:14:24 pm
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.
Title: Re: A test did not resolve true or false. What does this mean?
Post by: Xeda112358 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]
Title: Re: A test did not resolve true or false. What does this mean?
Post by: Java on May 03, 2020, 10:50:36 am
Thank you very much! 5 stars right here...