Difference between revisions of "VERSION"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> '''Value:''' Lua 5.1.x<br/> === Description === <translate>A global variable (not a function) that holds a string containi...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
'''Value:''' Lua 5.1.x<br/>
+
'''Value:''' Luau<br/>
 +
'''Defined by:''' [[(global)]]<br/>
 +
 
 
=== Description ===
 
=== 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>
 +
 
 +
The current contents of this variable is "'''Luau'''".
 +
 
 +
=== Example ===
 +
<syntaxhighlight lang="lua">
 +
print(_VERSION)
 +
</source>
 +
 
 +
{{(global)}}

Latest revision as of 15: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>