TryToClear - ReferenceAlias
Revision as of 13:28, 26 October 2011 by 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...")
Member of: ReferenceAlias Script
Clears this alias and returns whether anything was in it to begin with.
Syntax
bool Function TryToClear()
Parameters
None
Return Value
Whether the alias had a reference in it when it was cleared or not.
Examples
; Clear the alias
if OptionalAlias.Clear()
Debug.Trace("Removed something from the alias")
else
Debug.Trace("Didn't remove anything from the alias (already empty)")
endIf