Difference between revisions of "VERSION"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Value:''' Lua 5.1.x<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.
 +
<source lang="lua">
 +
_VERSION
 +
</source>
  
=== <translate>Example</translate> ===
+
The current contents of this variable is "'''Luau'''".
 +
 
 +
=== Example ===
 
<source lang="lua">
 
<source lang="lua">
 
print(_VERSION)
 
print(_VERSION)

Revision as of 00:34, 14 May 2022

Available since: Gideros 2011.6
Value: Lua 5.1.x
Defined by: (global)

Description

A global variable (not a function) that holds a string containing the current interpreter version.

_VERSION

The current contents of this variable is "Luau".

Example

print(_VERSION)