Difference between revisions of "VERSION"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 6: Line 6:
 
=== Description ===
 
=== Description ===
 
A global variable (not a function) that holds a string containing the current interpreter version.
 
A global variable (not a function) that holds a string containing the current interpreter version.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
_VERSION
 
_VERSION
 
</source>
 
</source>
Line 13: Line 13:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
print(_VERSION)
 
print(_VERSION)
 
</source>
 
</source>
  
 
{{(global)}}
 
{{(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>