User Tools

Site Tools


en:variables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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's memory to store things.  Each variable has a name that must begin with a letter, and may consist of any number of letters, numbers, and dollar signs.  They are case sensitive.\\ +You can think of a variable as a place in the computer's memory to store things.  Each variable has a name that must begin with a letter, and may consist of any number of letters, numbers, and dollar signs.  Their names are case sensitive, the variable 'a' is not the same as the variable "A".\\ 
-\\ + 
-In previous versions (before 1.99.99.8) Variables that contained strings were required to end with dollar sign ($).  This limitation has been removed and any variable may store any type of value.\\ +In BASIC-256 you do not need to define 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
-\\ + 
-^Variable Assignment^^^^ +==== Example ==== 
-^Operator^Name^Example^Comments^ +|99|Assigns the integer 99 to the variable a| 
-|=|Assign a Number to a Variable|a = 9| +|nom "Jim"|Assigns the string "Jimto the variable nom
-|=|Assign a String to a Variable|z = "Hola."+|print "Say hello to nom|Appends the string in nom the the string "Say hello to " and displays the result| 
-|=|Assign a Number to a Variable|q$ = 9.9| | +|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 to a Variable|f +"."|Same as f f + "."+==== See Also ==== 
-|-=|Subtract from a Variable|a -9|Same as a a - 9| +  [[variableoperators|Variable Operators]] 
-|*=|Multiply a Variable|a *2|Same as a 2+ 
-|/=|Divide a Variable|a /8|Same as a a / 8|+==== History ===
 +|1.99.99.8|variable typing was removed| 
  
en/variables.1451714873.txt.gz · Last modified: 2020/02/28 10:46 (external edit)