Skip to content

exist

builtin · libnexusinterp/corefcn/variables-proprietary.cc

: c = exist (name)
: c = exist (name, type)

Report how name is defined.

The result is 1 for a variable, 2 for a file (including M-files), 3 for a compiled extension file, 5 for a built-in function, 6 for a p-file, 7 for a directory and 0 when nothing of that name is found. type restricts the search to "var", "builtin", "dir", "file" or "class".