Shiny Language Reference
Language Reference > Basic Functions
Basic Functions
These statements are core language functions
if...else - Execute code based on a conditional check
for - Loop for a specified number of iterations, executing code on each iteration
while - Loop as long as a condition evaluates to TRUE, executing code on each iteration
break - Immediately abort the current loop, or the innermost loop where loops are nested
breakall - Immediately abort all loops, including nested loops
declare - Creates a variable of the specified type for use
realloc - Alters the size of an array (reallocates space)
getalloc - Returns the current size (number of elements) of an array
insertat - Inserts elements into an array at a specific position
removeat - Removes elements from an array at a specific position
print - Output text to the Virtual Machine debug output window
return - Stop executing the current function and return to the instruction after the one that called the function
stackdump - Display the contents of the stack in the Virtual Machine debug output window
rand - Generate a random number
redraw - Request that the display panel is redrawn, causes the Render handler to be triggered
rgb - Convert 3 individual Red, Green and Blue values into a single integer "packed" colour
getselfname - Retrieve the filename of the plugin
getusername - Retrieves the Windows username of the current user
getelapsedtime - Retrieve the number of milliseconds since the plugin was loaded
getscreenwidth - Retrieve the pixel width of the desktop's current resolution
getscreenheight - Retrieve the pixel width of the desktop's current resolution
shellexecute - Run a file or open a resource using Windows Explorer run command
setflags - Passes flags back to Brass from a handler
getwindow - Returns a valid HWND for advanced use
direct_push - Directly access the stack, push a value
direct_pop - Directly access the stack, pop a value
direct_discardtop - Directly access the stack, discard the topmost value