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
M.api.version.string()
Returns the API version as a complete string.
| Syntax | local s = M.api.version.string() |
| Input | none |
| Returns | string |
print("API version:", M.api.version.string())M.api.version.major()
Returns the major version number of the API.
| Syntax | local n = M.api.version.major() |
| Input | none |
| Returns | integer |
M.api.version.minor()
Returns the minor version number of the API.
| Syntax | local n = M.api.version.minor() |
| Input | none |
| Returns | integer |
M.api.version.patch()
Returns the patch version number of the API.
| Syntax | local n = M.api.version.patch() |
| Input | none |
| Returns | integer |
Related