Lesson Map | Next > Print Text and Variables

Define Variables

Liberty BASIC has two kinds of variables. One kind of variable is for numbers, while the other is for strings of text. String variable names that contain text always end with a dollar sign '$ '. Variable names that do not end in a dollar sign contain numbers.

input "What is your name? "; name$
print name$

That echo, just printing the variable, seems a little abrupt. Maybe we can soften it up, and make it more user-friendly.

Lesson Map | Next > Print Text and Variables