Difference between revisions of "IsReference"

From GECK

(added likely use context)
 
(One intermediate revision by one other user not shown)
Line 16: Line 16:
 
endif
 
endif
 
</pre>
 
</pre>
 +
 +
==Notes==
 +
*IsReference ALWAYS returns true in a script block that has the CO on (script compiler override).
 +
 +
==See Also==
 +
*[[IsFormValid]]
 +
*[[TypeOf]]
 +
*[[GetType]]
 +
*[[IsPersistent]]
 
[[Category:Debugging]]
 
[[Category:Debugging]]
 
[[Category:Functions_(FOSE)]]
 
[[Category:Functions_(FOSE)]]

Latest revision as of 12:26, 20 February 2017

A function added by the Fallout Script Extender.

Description

Returns True (1) if the passed ref variable stores a reference. Particularly useful for validation in cases where a non reference might cause a script to crash.

Syntax

(bool) IsReference reference:ref

Example

if IsReference RefVar
    ; it is safe to proceed
endif

Notes

  • IsReference ALWAYS returns true in a script block that has the CO on (script compiler override).

See Also

Personal tools