Monday, July 15, 2013

Input command

Here's another of my tutorials.
INPUT "What is your name"NAME$
Now, if your thinking why I didn't put a question mark it's because when I put the $ sign it would do the question mark for me. But here's something cool you can do with whatever the put:
PRINT "Cool "NAME$"!"
So let's say you put Mario. Then it would print Cool Mario! Pretty Cool huh? You can even do this:
INPUT "Do you like me";LIKE$
IF LIKE$=="Yes" THEN GOTO @YES
IF LIKE$=="No" THEN END
I  will explain the @YES in the next post. But I can tell you about the second one. It will make it so that if you put No it will end the program. The END statement will make the program anytime you want it too. Also, have you ever got annoyed of the words at the top? Here's how you make it go away:
CLS
That's it! Just put that and it will do just that! By the way, if you noticed the edit button at the bottom that is actually the place you should be typing. So just type what you want to happen in there, press the Run button at the bottom, and start typing!

No comments:

Post a Comment