Guide to Game Development/The Programming Language/VB.NET/Variables

Different types of Variables
This a table of all the different data types that a variable can be, you don't need to remember all of these, just a few.

For now, just try and remember these:
 * Integer
 * Double
 * Boolean
 * Char
 * String

Declaration of a variables
You can create a variable with the following format: Dim NameOfVariable As DataTypeOfTheVariable Examples:

If you want to make many variables of the same data type it can be done like so: Dim NameOfVariable,NameOfVariable2,NameOfVariable3,... As DataTypeOfTheVariables Example:

Setting the value for a variable
There are two way which you can set the state of a variable:
 * On the declaration line
 * Standalone statement
 * Standalone statement mixed with math (will be shown at a later date).

Example of setting value on a declaration line: Example of setting value as a standalone statement:

Example:

This code: Will output: 10 -4

Naming conventions
When naming variables, you should name them using lower camel case

thisIsWhereYouWriteVariablesLikeThis

itIsLowerBecauseTheFirstLetterIsLowerCase