YYC Toolbox Lua API Help

Global Functions

Below is a list of all global functions. By “global”, we mean these functions do not require a preceding namespace - so you can call them directly, unlike other functions.

print

Prints text to the debug console.

Arguments

Name

Type

Description

...

any

Data to print.

Example

print("Hello, world!") -- Prints "Hello, world!" to the debug console.

RValue

Converts provided arguments to a type of RValue.

Arguments

Name

Type

Description

...

number, boolean, string or nil

The data to convert.

Returns

Type

Description

RValue

The created RValue.

Example

-- Gets an RValue which is the number 123 RValue(123) -- Gets an RValue which is the string "hello, world!" RValue("hello, world!") -- Gets an RValue which is an array of [ 123, "array", undefined ] RValue(123, "array", nil)
Last modified: 29 March 2025