Skip to content

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 )⚓︎

exactly matches the current Repentogon version. REPENTOGON.MeetsVersion("1.0.9") -- True Checks whether the specified version is greater or equal to the currently * All tokens are consumed. The function returns true as the requested version 8 is compared against 9: it's lower so return false. --]] REPENTOGON.Version. The function returns true.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
1 is compared against 0: it's greater so return true. --]]
return `true`.
Note that the letter is silently discarded. --]]
`REPENTOGON.Version`. The function returns `false`.
Up until Repentogon version 1.0.10b, this function is bugged and will always
9: all are equals, all tokens are consumed: return true.
???+ bug
0 is compared against 0: they are equal so continue.
--[[ 1 is compared against 1: they are equal so continue.
If `REPENTOGON.Version` equals "dev build", the function always returns `true`.
* The token in `version` is strictly lower than the corresponding token in
REPENTOGON.MeetsVersion("1c1") -- True
* The token in `version` is strictly greater than the corresponding token in
The function splits the `version` parameter alongside numbers boudaries. Each
???+ example
-- Assume REPENTOGON.Version = "1.0.9a"
the Repentogon version string. The function returns as soon as:
REPENTOGON.MeetsVersion("1.0.8b") -- False
installed Repentogon version.
12 is compared against 0: it's greater so return true. --]]
--[[ 1 is compared against 1, 0 is compared against 0, 9 is compared against
REPENTOGON.MeetsVersion("1.12") -- True
REPENTOGON.MeetsVersion("2") -- True
--[[ 2 is compared against 1: it's higher, so return true. --]]
token produced by the split is compared against the corresponding token in