TraceConditional - Debug
Member of: Debug Script
Outputs a string to the Papyrus log on disk, and the Papyrus debug text page. But only if the condition is true.
SyntaxEdit
Function TraceConditional(string TextToPrint, bool ShowTrace) global
if ShowTrace
trace(TextToPrint)
EndIf
EndFunctionParametersEdit
- 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 ValueEdit
None
ExamplesEdit
; Output "Hello World" to the log, but only if the bdebug variable is true
Debug.TraceConditional("Hello, World!", bDebug)