curves
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
curves [2022/05/24 08:50] – [Get value from the curve via Lua] emozolyak | curves [2022/05/24 08:52] (current) – [Get value from the curve via Lua] emozolyak | ||
---|---|---|---|
Line 128: | Line 128: | ||
Example of usage: | Example of usage: | ||
<code lua - Getter> | <code lua - Getter> | ||
- | include " | + | include " |
function main (userId) | function main (userId) | ||
local SAFE_VALUE = 10 | local SAFE_VALUE = 10 | ||
- | local current_hour | + | local curHour |
- | + | | |
- | local y, valueOutOfRange = getCurveValue(" | + | local y, valueOutOfRange = getCurveValue(" |
| | ||
if (not valueOutOfRange) then | if (not valueOutOfRange) then | ||
- | | + | |
else | else | ||
- | | + | |
end | end | ||
end | end |
curves.1653382215.txt.gz · Last modified: 2022/05/24 08:50 by emozolyak