Drawing

isrenderobj

Checks whether a value is a drawing object created by the executor.

Syntax

isrenderobj(object: any): boolean

Arguments

NameTypeDescription
objectanyObject, table, or drawing value to inspect or change.

Returns

NameTypeDescription
isDrawingObjectbooleanTrue when the value is a drawing object.

Description

Checks whether a value is a drawing object created by the executor.

Call it with 1 parameter(s): object. The argument table explains which values are required and which ones only refine the behavior.

It returns isDrawingObject (boolean). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = isrenderobj(nil)
print(result)