Syntax
Aliases
validleveldebug.isvalidleveldebug.validlevel
Checks whether a numeric stack level is within the current call stack range. level is required and must be a number because the function calls requires a number. The value is converted to an integer. The function returns false when level < 0 or level >= the current call stack depth, otherwise true. It does not inspect the frame closure and does not raise “Level out of range” for invalid numeric levels. validlevel is a global alias, and debug.isvalidlevel plus debug.validlevel are exposed with the debug table aliases.
validleveldebug.isvalidleveldebug.validlevel