A variable is a symbol representing a quantity.
In computer programming, a variable represents a location in memory where a value is stored.
In Ozapell Basic, there are four simple types of variables. The type of the variable is determined by the data assigned to it.
X is a variable assigned the value of 10. X is of the integer type because it is a whole number (doesn’t contain a decimal point). 0 is also an integer. Negative whole numbers such as -1 or -50 are also integers.
Y is a variable assigned the value of 10.5. 10.5 is a floating point number because it contains a decimal point. 0.0 is also a floating point number as long as the decimal point is included. Negative floating point numbers contain a decimal point such as in -1.5 or -50.33.
Z is a variable assigned the text string HELLO. (Note: The quotation marks designate the begin and end of the string. These quotation marks are not included in the final string.)
Finally, the fourth simple type in Ozapell Basic is a boolean. Boolean variables contain either TRUE or FALSE. They are used by logic statements.
B is a variable assigned the boolean value of TRUE.
Here are some videos demonstrating how to start working with Ozapell Basic.