M.api

The M.api functions return the version of the MASSO Lua API, so a script can check it's running on a compatible version.

Applies to
MASSO G3 and MASSO G3 Touch
Available from
Software 5.13, API 1.0.0
Write scripts in
FunctionReturns
M.api.version.string()Full version as a string
M.api.version.major()Major version number
M.api.version.minor()Minor version number
M.api.version.patch()Patch version number
M.api.version.string()

Returns the API version as a complete string.

Syntaxlocal s = M.api.version.string()
Inputnone
Returnsstring
print("API version:", M.api.version.string())
M.api.version.major()

Returns the major version number of the API.

Syntaxlocal n = M.api.version.major()
Inputnone
Returnsinteger
M.api.version.minor()

Returns the minor version number of the API.

Syntaxlocal n = M.api.version.minor()
Inputnone
Returnsinteger
M.api.version.patch()

Returns the patch version number of the API.

Syntaxlocal n = M.api.version.patch()
Inputnone
Returnsinteger