Mod:Creation Kit/TryToClear - ReferenceAlias

Member of: Mod:Creation Kit/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
if OptionalAlias.TryToClear Debug.Trace("Removed something from the alias") else Debug.Trace("Didn't remove anything from the alias (already empty)") endIf
 * Clear the alias