~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/eng/programming/exists.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
 
3
<MAN>
 
4
  <LANGUAGE>eng</LANGUAGE>
 
5
  <TITLE>exists</TITLE>
 
6
  <TYPE>Scilab Function</TYPE>
 
7
  <DATE>April 1993</DATE>
 
8
  <SHORT_DESCRIPTION name="exists"> checks variable  existence</SHORT_DESCRIPTION>
 
9
  <CALLING_SEQUENCE>
 
10
    <CALLING_SEQUENCE_ITEM>exists(name [,where])  </CALLING_SEQUENCE_ITEM>
 
11
  </CALLING_SEQUENCE>
 
12
  <PARAM>
 
13
    <PARAM_INDENT>
 
14
      <PARAM_ITEM>
 
15
        <PARAM_NAME>name</PARAM_NAME>
 
16
        <PARAM_DESCRIPTION>
 
17
          <SP>: a character string</SP>
 
18
        </PARAM_DESCRIPTION>
 
19
      </PARAM_ITEM>
 
20
      <PARAM_ITEM>
 
21
        <PARAM_NAME>where</PARAM_NAME>
 
22
        <PARAM_DESCRIPTION>
 
23
          <SP>: an optional character string with default value <VERB>'all'</VERB></SP>
 
24
        </PARAM_DESCRIPTION>
 
25
      </PARAM_ITEM>
 
26
    </PARAM_INDENT>
 
27
  </PARAM>
 
28
  <DESCRIPTION>
 
29
    <P><VERB>exists(name)</VERB> returns <VERB>1</VERB> if the variable named <VERB>name</VERB>
 
30
    exists and <VERB>0</VERB> otherwise.</P>
 
31
    <P>
 
32
    Caveats: a function which uses <VERB>exists</VERB> may return a result which depends on the environment!</P>
 
33
    <P><VERB>exists(name,'local')</VERB> returns <VERB>1</VERB> if the variable named
 
34
    <VERB>name</VERB> exists in the local environment of the current function and
 
35
    <VERB>0</VERB> otherwise.</P>
 
36
  </DESCRIPTION>
 
37
  <EXAMPLE>
 
38
<![CDATA[
 
39
deff('foo(x)',..
 
40
['disp([exists(''a12''),exists(''a12'',''local'')])'
 
41
 'disp([exists(''x''),exists(''x'',''local'')])'])
 
42
foo(1)
 
43
a12=[];foo(1)
 
44
 ]]>
 
45
  </EXAMPLE>
 
46
  <SEE_ALSO>
 
47
    <SEE_ALSO_ITEM>
 
48
      <LINK>isdef</LINK>
 
49
    </SEE_ALSO_ITEM>
 
50
    <SEE_ALSO_ITEM>
 
51
      <LINK>whereis</LINK>
 
52
    </SEE_ALSO_ITEM>
 
53
    <SEE_ALSO_ITEM>
 
54
      <LINK>type</LINK>
 
55
    </SEE_ALSO_ITEM>
 
56
    <SEE_ALSO_ITEM>
 
57
      <LINK>typeof</LINK>
 
58
    </SEE_ALSO_ITEM>
 
59
    <SEE_ALSO_ITEM>
 
60
      <LINK>macrovar</LINK>
 
61
    </SEE_ALSO_ITEM>
 
62
  </SEE_ALSO>
 
63
</MAN>