Difference between revisions of "variable"
m (Fixed typo..) |
(Added i18n template and source code reformatted.) |
||
Line 1: | Line 1: | ||
A variable is a value like val, var, and any other letter or word that is not already assigned to something else. | A variable is a value like val, var, and any other letter or word that is not already assigned to something else. | ||
− | ==Example== | + | == Example == |
Changes a variable by 1 each time the left mouse button is clicked | Changes a variable by 1 each time the left mouse button is clicked | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 11: | Line 11: | ||
</source> | </source> | ||
− | ==See Also== | + | == See Also == |
− | [[love.mousepressed]] | + | * [[love.mousepressed]] |
+ | |||
+ | == Other Languages == | ||
+ | {{i18n|variable}} |
Revision as of 14:33, 10 August 2016
A variable is a value like val, var, and any other letter or word that is not already assigned to something else.
Example
Changes a variable by 1 each time the left mouse button is clicked
function love.mousepressed( x, y, button )
if button == "l" then
time = time + 1
end
end
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info