Difference between revisions of "TryToClear - ReferenceAlias"

Jump to navigation Jump to search
→‎Examples: Corrected function (Clear -> TryToClear)
imported>Plplecuyer
(Created page with "Category:Scripting Category:Papyrus '''Member of:''' ReferenceAlias Script Clears this alias and returns whether anything was in it to begin with. == Syntax == <sou...")
 
imported>Nitor
(→‎Examples: Corrected function (Clear -> TryToClear))
 
Line 19: Line 19:
<source lang="papyrus">
<source lang="papyrus">
; Clear the alias
; Clear the alias
if OptionalAlias.Clear()
if OptionalAlias.TryToClear()
   Debug.Trace("Removed something from the alias")
   Debug.Trace("Removed something from the alias")
else
else
Anonymous user

Navigation menu