This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
en:variables [2016/01/01 23:07] admin |
en:variables [2016/08/07 21:19] admin |
||
---|---|---|---|
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' | ||
+ | |||
+ | ==== Example ==== | ||
+ | |a = 99|Assigns the integer 99 to the variable a| | ||
+ | |nom = " | ||
+ | |print "Say hello to " + nom|Appends the string in nom the the string "Say hello to " and displays the result| | ||
+ | |a = a + 1|Takes the value of a and adds one to it, then store the new value back into a| | ||
+ | |||
\\ | \\ | ||
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.\\ | 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.\\ |