Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

exist (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: membership

Requires: MathScript RT Module


c = exist(a)

c = exist(a, option)


Determines whether a variable, file, LabVIEW MathScript function, or directory exists.



Name Description
a Specifies the name of the variable, file, function, or directory that you want to determine exists. a is a string.
option Specifies the type of item for which you want to search. option is a string that accepts the following values.

'dir' Checks for directories.
'file' Checks for files or directories.
'function' Checks for MathScript functions. LabVIEW does not search for MathScript functions that you define.
'var' Checks for variables.


Name Description
c Determines whether a exists. c is an integer that can return the following values.

0 a does not exist.
1 a is a variable in use.
2 a is an existing file.
5 a is a MathScript function.
7 a is an existing directory.


The following table lists the support characteristics of this function.

Causes reduced performance (warning glyph) Yes
Supported in the LabVIEW Run-Time Engine No
Supported on RT targets No


A = 'I do exist'
C = exist('A')

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful