User Tools

Site Tools


variable

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
variable [2014/09/20 17:20]
127.0.0.1 external edit
variable [2017/10/09 20:39] (current)
Line 3: Line 3:
 [[Expression]]s by themselves aren't particularly powerful. [[Function]]s like previous(), either() and visited() can help in making [[link]]s, [[<<​print>>​]] and [[<<​if>>​]] macros more interesting,​ but if you want anything more complex than those, **variables** will be necessary. [[Expression]]s by themselves aren't particularly powerful. [[Function]]s like previous(), either() and visited() can help in making [[link]]s, [[<<​print>>​]] and [[<<​if>>​]] macros more interesting,​ but if you want anything more complex than those, **variables** will be necessary.
  
-A variable is a place to store a value so that you can remember it later. You can store both strings and numbers in variables. The variable ''​$name''​ might contain the main character'​s name, "​Agatha Christie",​ or the variable ''​$money''​ might contain the amount of money Agatha has in her pocket -- the number 15.75.+A variable is a place to store a value so that you can remember it later. You can store strings, booleans ​and numbers in variables. The variable ''​$name''​ might contain the main character'​s name, "​Agatha Christie",​ or the variable ''​$money''​ might contain the amount of money Agatha has in her pocket -- the number 15.75.
  
 ==== Variable names ==== ==== Variable names ====
variable.txt ยท Last modified: 2017/10/09 20:39 (external edit)