Global Variable "REPENTOGON"⚓︎
This global variable exposes functions and variables about Repentogon, such as the current version, the changelog etc. It is a table.
This variable can be accessed anywhere.
Functions⚓︎
All functions in the table are static: they are accessed using the dot (.
)
operator, rather than the colon (:
) operator.
MeetsVersion ()⚓︎
boolean MeetsVersion ( string version )⚓︎
Checks whether the specified version
is greater or equal to the currently
installed Repentogon version.
The function splits the version
parameter alongside numbers boudaries. Each
token produced by the split is compared against the corresponding token in
the Repentogon version string. The function returns as soon as:
* The token in version
is strictly lower than the corresponding token in
REPENTOGON.Version
. The function returns false
.
* The token in version
is strictly greater than the corresponding token in
REPENTOGON.Version
. The function returns true
.
* All tokens are consumed. The function returns true
as the requested version
exactly matches the current Repentogon version.
If REPENTOGON.Version
equals "dev build", the function always returns true
.
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
Bug
Up until Repentogon version 1.0.10b, this function is bugged and will always
return true
.