love.isVersionCompatible

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

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

Function

Synopsis

compatible = love.isVersionCompatible( version )

Arguments

string version
The version to check (for example '11.3' or '0.10.2').

Returns

boolean compatible
Whether the given version is compatible with the current running version of LÖVE.

Function

Synopsis

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

Arguments

number major
The major version to check (for example 11 for 11.3 or 0 for 0.10.2).
number minor
The minor version to check (for example 3 for 11.3 or 10 for 0.10.2).
number revision
The revision of version to check (for example 0 for 11.3 or 2 for 0.10.2).

Returns

boolean compatible
Whether the given version is compatible with the current running version of LÖVE.

See Also

Other Languages