Difference between revisions of "VERSION"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Value:''' Luau<br/>
'''<translate>Value</translate>:''' Lua 5.1.x<br/>
+
'''Defined by:''' [[(global)]]<br/>
'''<translate>Defined by</translate>:''' [[Special:MyLanguage/(global)|(global)]]<br/>
 
  
=== <translate>Description</translate> ===
+
=== Description ===
<translate>A global variable (not a function) that holds a string containing the current interpreter version. The current contents of this variable is "Lua 5.1".</translate>
+
A global variable (not a function) that holds a string containing the current interpreter version.
 +
<syntaxhighlight lang="lua">
 +
_VERSION
 +
</source>
  
=== <translate>Example</translate> ===
+
The current contents of this variable is "'''Luau'''".
<source lang="lua">
+
 
 +
=== Example ===
 +
<syntaxhighlight lang="lua">
 
print(_VERSION)
 
print(_VERSION)
 
</source>
 
</source>
  
 
{{(global)}}
 
{{(global)}}

Latest revision as of 14:32, 13 July 2023

Available since: Gideros 2011.6
Value: Luau
Defined by: (global)

Description

A global variable (not a function) that holds a string containing the current interpreter version. <syntaxhighlight lang="lua"> _VERSION </source>

The current contents of this variable is "Luau".

Example

<syntaxhighlight lang="lua"> print(_VERSION) </source>