1,482
edits
imported>Thingy Person (→Syntax) |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
Function TraceConditional(string TextToPrint, bool ShowTrace) global | Function TraceConditional(string TextToPrint, bool ShowTrace) global | ||
if ShowTrace | if ShowTrace | ||
| Line 12: | Line 12: | ||
EndIf | EndIf | ||
EndFunction | EndFunction | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 22: | Line 22: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Output "Hello World" to the log, but only if the bdebug variable is true | ; Output "Hello World" to the log, but only if the bdebug variable is true | ||
Debug.TraceConditional("Hello, World!", bDebug) | Debug.TraceConditional("Hello, World!", bDebug) | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||