Functions

core.inc

Function Type Description
clamp native Limits a provided value between two specified bounds.
date native Retrieves the current date in year, month and day.
funcidx native Returns the function index of a public function declared in the plugin.
getarg native Retrieves an argument value passed into the currently executed function.
heapspace native Returns the free memory space available to the plugin.
max native Returns the bigger of two provided values.
min native Returns the smaller of two provided values.
numargs native Returns the number of arguments passed into the currently executed function.
power native Returns a value raised to a specified exponent.
random native Returns a random number between 0 and a specified upper bound.
setarg native Sets the value of an argument passed into the currently executed function.
sqroot native Returns the approximated square root of a value.
swapchars native Swaps the bytes of a value (the lowest byte becomes the highest byte).
tickcount native Returns the elapsed CPU seconds.
time native Retrieves the current time in hours, minutes and seconds.
tolower native Converts a character to lowercase.
toupper native Converts a character to uppercase.
abs stock Returns the absolute value of a number.