User Tools

Site Tools


en:variables

This is an old revision of the document!


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.

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.

Variable Assignment
OperatorNameExampleComments
=Assign a Number to a Variablea = 9
=Assign a String to a Variablez = “Hola.”
=Assign a Number to a Variableq$ = 9.9
+=Add to a Variablea += 7Same as a = a + 7
+=Concatenate to a Variablef += “.”Same as f = f + “.”
-=Subtract from a Variablea -= 9Same as a = a - 9
*=Multiply a Variablea *= 2Same as a = a * 2
/=Divide a Variablea /= 8Same as a = a / 8
en/variables.1451714873.txt.gz · Last modified: 2020/02/28 10:46 (external edit)