Difference between revisions of "IsReference"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-'''.*'''\r\n +))
imported>Odessa
(added likely use context)
Line 1: Line 1:
{{Function
{{Function
  |origin = FOSE1
  |origin = FOSE1
  |summary = Returns 1 if the passed refVar stores a reference.
  |summary = 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.
  |name = IsReference
  |name = IsReference
  |returnType = int
  |returnType = bool
  |arguments =  
  |arguments =  
   {{FunctionArgument
   {{FunctionArgument
Line 10: Line 10:
   }}
   }}
}}
}}
==Example==
<pre>
if IsReference RefVar
    ; it is safe to proceed
endif
</pre>
[[Category:Debugging]]
[[Category:Functions_(FOSE)]]
[[Category:Functions_(FOSE)]]

Revision as of 13:57, 28 June 2014

< [[::Category:Functions|Category:Functions]]

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

[help]
(bool) IsReference reference:ref

Example

if IsReference RefVar
    ; it is safe to proceed
endif