Feature Overview
INRNG() Tests if the value is between the lowest and highest values.
- Tests that the specified value is within a range.
- This function consumes 10 Token.
--[true] in range value inrng(5,1,10) --[true] lowest range value inrng(1,1,10) --[true] highest range value inrng(10,1,10) --[false] out of range value inrng(0,1,10) --Player:1 any key inrng(btn(),0x1,0xff) --Player:2 any key inrng(btn(),0x100,0xff00) |
This function is included in the KNUTIL library.
release note
1
using ...
twice like that is a neat trick; I'll have to remember that!
[Please log in to post a comment]