Sometimes you don't always know exactly what is going on inside of your program.
It can make it a lot easier if you could see the numbers inside your variables yourself.
You can display the values of all of your variables using the print command.
That's what I do for testing my variables.
If I had 3 variables (x#, y#, and z#), and I also wanted to check the frames per second.
I would display them to the screen with this code.
Set cursor 0,0
Print "X: ";x#
Print "Y: ";y#
Print "Z: ";z#
Print "FPS: ";screen fps()
Its a very easy, and useful way of checking if your variables are working correctly.
Hope this helps.
I like games, and stuff.