TryToClear - ReferenceAlias

Member of: ReferenceAlias Script

Clears this alias and returns whether anything was in it to begin with.

SyntaxEdit

bool Function TryToClear()

ParametersEdit

None

Return ValueEdit

Whether the alias had a reference in it when it was cleared or not.

ExamplesEdit

; Clear the alias
if OptionalAlias.TryToClear()
  Debug.Trace("Removed something from the alias")
else
  Debug.Trace("Didn't remove anything from the alias (already empty)")
endIf

See AlsoEdit