How do variables work in smileBASIC?


Variables are very important in programming because they hold information you will need through your program.

To declare a number variable, you can use the following code: (sometimes numerical variables are called "real")


The above code creates a variable called MYVARIABLE and places the numerical value 9 in it!

To declare a string variable, you can use the following code: (string variables are where you hold words)


The above code creates a variable called MYGAME and places the string value "GAME1" in it. Remember, you need to $ sign after your variable name for it to be a string variable.

Page updated: September 5th, 2015 @ 10:56 AM Eastern Time
To help organize our content, all of our game creation tutorial content is moving to our other site:
The move will take about two months to fully complete, so stay tuned!

Game Making Tutorials
Find tutorials about your favorite game creation software! Use the navigation below!

Game Maker: Studio
Help, References, and Tutorials
RPG Maker Fes
Help, References, and Tutorials
Help, References, and Tutorials

Need Help?
Search answers to game development questions or ask a question yourself
Get exclusive updates from!
Join the Email List
Download Books
Search Downloadable Books from
Copyright 2010-2018
All Rights Reserved.