Utilities

getexecutorversion

Returns Real's executor version string from the executor version and returns exactly one value.

Syntax

getexecutorversion(): string

Returns

NameTypeDescription
executorVersionstringExecutor version from the executor version. In the current codebase this is initialized to "2.1.0".

Description

Returns Real's executor version string from the executor version and returns exactly one value. The function takes no arguments, pushes the executor version.data() with string return, and has no registered alias. In the current codebase, the executor version is initialized to "2.1.0".

Call it without parameters. The function reads the needed context from the current runtime state.

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

Example

Read the executor version string exposed by Real.

local version = getexecutorversion()
print(version)