This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:variables [2016/01/01 23:07] 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 previous versions (before 1.99.99.8) Variables that contained strings were required | + | In BASIC-256 you do not need to define |
- | \\ | + | |
- | ^Variable Assignment^^^^ | + | ==== Example |
- | ^Operator^Name^Example^Comments^ | + | |a = 99|Assigns the integer 99 to the variable |
- | |=|Assign a Number | + | |nom = " |
- | |=|Assign a String to a Variable|z = "Hola."| | | + | |print "Say hello to " |
- | |=|Assign a Number | + | |a = a + 1|Takes the value of a and adds one to it, then store the new value back into a| |
- | |+=|Add to a Variable|a += 7|Same as a = a + 7| | + | |
- | |+=|Concatenate | + | ==== See Also ==== |
- | |-=|Subtract from a Variable|a -= 9|Same as a = a - 9| | + | |
- | |*=|Multiply a Variable|a *= 2|Same as a = a * 2| | + | |
- | |/=|Divide a Variable|a /= 8|Same as a = a / 8| | + | ==== History |
+ | |1.99.99.8|variable typing was removed| | ||