Difference between revisions of "love.isVersionCompatible"

(Created page with "{{newin|0.10.0|010|type=function}} Gets whatever the version is compatible with current running version of LÖVE. == Function == === Synopsis === <source lang="lua"> comp...")
 
m (some minor fixed.)
Line 1: Line 1:
{{newin|[[0.10.0]]|010|type=function}}
+
{{newin|[[0.10.0]]|0100|type=function}}
 
Gets whatever the version is compatible with current running version of LÖVE.
 
Gets whatever the version is compatible with current running version of LÖVE.
  

Revision as of 03:17, 13 December 2019

Available since LÖVE 0.10.0
This function is not supported in earlier versions.

Gets whatever the version is compatible with current running version of LÖVE.

Function

Synopsis

compatible = love.isVersionCompatible( version )

Arguments

string version
The version (for example: "0.10.1").

Returns

boolean compatible
Whatever is the version compatible.

Function

Synopsis

compatible = love.isVersionCompatible( major, minor, revision )

Arguments

number major
The major version, i.e. 0 for version 0.10.1.
number minor
The minor version, i.e. 10 for version 0.10.1.
number revision
The revision version, i.e. 1 for version 0.10.1.

Returns

boolean compatible
Whatever is the version compatible.

See Also

Other Languages