I am trying to make a "google" type program to where when I type something in to the "web browser" it will give me the answer, but my code doesn't seem to work.. Have a look at it, will you?

?->A
If A=SLOPE
Then
Clrtext
“Of a line?”
IfEnd
If A=Other
Then
Clrtext
“Okay”
IfEnd

Whenever I type anything in it always displays as:

Of a line
Okay





If I try to do something like
"SLOPE"=A
?->B
If B=A
Then
"You pressed slope"
IfEnd

This still does not work, I do not know if it has to do with inputting SLOPE into a, but this is crucial to my program, please help Smile
is the IfEnd a typo in the code?
tr1p1ea wrote:
is the IfEnd a typo in the code?
No, it is not, I am ending the If statement
Oh apologies, I didn't realise this was for Casio!

Unfortunately I'm not familiar with the platform Sad.

here is an example from a CASIO tutorial I found:


Code:
1->A
If A=1   //expression to be evaluated
Then “HI”  //result if expression is true
“HOW ARE YOU”
Else “BYE”  //result if expression is false
“SEE YOU LATER”
If End   //end of statement
Oh, It is ok! Smile
Thank you very much for the helpful code, maybe I will try to implement something in to make it fully work! Very Happy

Have a great day!
Doing some quick reading you might need to store in a string and use StrCmp?


Code:

"Command"?->Str 1
If StrCmp(Str 1,"SLOPE")=0
Then
Clrtext
"Of a line?"
IfEnd
WOW LOL!! What in the world was I think in my OG code! Tysm for pointing this out! It now works!!

Your a real goat! Very Happy
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement