curves
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
curves [2022/05/23 21:11] – [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 " |
- | SAFE_VALUE = 10 | + | |
function main (userId) | function main (userId) | ||
- | + | local SAFE_VALUE = 10 | |
- | local t = os.date(" | + | local curHour |
- | | + | |
- | | + | |
- | if curve_status | + | |
- | | + | if (not valueOutOfRange) |
+ | | ||
else | else | ||
- | | + | |
end | end | ||
- | | ||
- | |||
end | end | ||
</ | </ |
curves.txt · Last modified: 2022/05/24 08:52 by emozolyak