Add also the examples in core help pages in the russian help page (port of modificati...
[scilab.git] / scilab / modules / core / help / en_US / configuration / with_module.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="with_module">
3     <refnamediv>
4         <refname>with_module</refname>
5         <refpurpose>Checks if a Scilab module is
6             installed
7         </refpurpose>
8     </refnamediv>
9     <refsynopsisdiv>
10         <title>Calling Sequence</title>
11         <synopsis>r = with_module(module_name)</synopsis>
12     </refsynopsisdiv>
13     <refsection>
14         <title>Arguments</title>
15         <variablelist>
16             <varlistentry>
17                 <term>r</term>
18                 <listitem>
19                     <para>a boolean</para>
20                 </listitem>
21             </varlistentry>
22             <varlistentry>
23                 <term>module_name</term>
24                 <listitem>
25                     <para>a string, for example : <literal>'core'</literal></para>
26                 </listitem>
27             </varlistentry>
28         </variablelist>
29     </refsection>
30     <refsection>
31         <title>Description</title>
32         <para>
33             Returns <constant>%t</constant> if a Scilab module <literal>module_name</literal> is installed or <constant>%f</constant> if not.
34         </para>
35     </refsection>
36     <refsection>
37         <title>Examples</title>
38         <programlisting role="example"><![CDATA[ 
39 withXML = with_module("xml");
40 if withXML == %t then
41    disp("XML module enabled");
42 else
43    disp("XML module disabled");
44 end
45  ]]></programlisting>
46     </refsection>
47     
48     <refsection role="see also">
49         <title>See Also</title>
50         <simplelist type="inline">
51             <member>
52                 <link linkend="getmodules">getmodules</link>
53             </member>
54         </simplelist>
55     </refsection>
56 </refentry>