This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:variables [2016/08/09 18:23] admin |
en:variables [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Variables ===== | ===== Variables ===== | ||
You can think of a variable as a place in the computer' | You can think of a variable as a place in the computer' | ||
+ | |||
+ | In BASIC-256 you do not need to define a variable before you use it. The variable is created when it is assigned a value for the first time and will retain its value until the program [[end|end]]s or the variable is [[unassign|unassign]]ed. | ||
==== Example ==== | ==== Example ==== | ||
Line 8: | Line 10: | ||
|a = a + 1|Takes the value of a and adds one to it, then store the new value back into a| | |a = a + 1|Takes the value of a and adds one to it, then store the new value back into a| | ||
- | \\ | + | ==== See Also ==== |
- | In previous versions (before 1.99.99.8) Variables that contained strings were required to end with a dollar sign ($). This limitation has been removed and any variable may store any type of value.\\ | + | |
- | See also: [[variableoperators|Variable Operators]] | + | ==== History ==== |
+ | |1.99.99.8|variable typing was removed| | ||