Mod:Creation Kit/TraceConditionalGlobal - Debug

Member of: Mod:Creation Kit/Debug Script

Outputs a string to the Papyrus log on disk, and the Papyrus overlay. But only if the global is true.

Syntax
Function TraceConditionalGlobal(string TextToPrint, GlobalVariable ShowTrace) global debugOnly

Parameters

 * TextToPrint: The text that should be printed to the log and text page.
 * ShowTrace: If true, the trace is printed out, otherwise it is eaten by the function.

Return Value
None

Examples
Debug.TraceConditionalGlobal("Hello, World!", DebugGlobal)
 * Output "Hello World" to the log, but only if the DebugGlobal global is true