ReferenceConsole and output

getoutputcapture

Reports whether Apex is capturing submitted-script output.

Syntax

getoutputcapture() -> boolean

Returns

TypeDescription
booleanWhether output capture is enabled.

Description

Capture concerns ordinary print and warn output; rconsole is a separate stream. This reports the current runtime setting for the instance, which follows the Output capture option in Apex's settings, rather than a count of saved messages.

Example

print(getoutputcapture())

These are Game executor contracts. Check build requirements and session lifetimes before using them.