This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:variables [2016/01/01 22:42] 127.0.0.1 external edit |
en:variables [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Variables ===== | ===== Variables ===== | ||
- | Variables | + | You can think of a variable as a place in the computer' |
- | \\ | + | |
- | Variables that hold string values follow | + | In BASIC-256 |
- | \\ | + | |
- | When you assign a numeric value to a string | + | ==== Example |
- | \\ | + | |a = 99|Assigns the integer 99 to the variable |
- | ^Variable Assignment^^^^ | + | |nom = " |
- | ^Operator^Name^Example^Comments^ | + | |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| |
- | |=|Assign a String to a String Variable|z$ = "Hola."| | | + | |
- | |=|Assign a Number | + | ==== See Also ==== |
- | |+=|Add to Numeric Variable|a += 7|Same as a = a + 7 <sup>1</ | + | |
- | |+=|Concatenate | + | |
- | |-=|Subtract from Numeric Variable|a -= 9|Same as a = a - 9 < | + | ==== History ==== |
- | |*=|Multiply Numeric Variable|a *= 2|Same as a = a * 2 < | + | |1.99.99.8|variable typing was removed| |
- | |/=|Divide Numeric Variable|a /= 8|Same as a = a / 8 <sup>1</ | + | |
- | \\ | ||
- | < |