|
| 1 | +<!--Change refentry id and indexterm id--> |
| 2 | +<refentry id="ftexists"> |
| 3 | + <indexterm id="IndexFtexists"><primary>ftexists</primary></indexterm> |
| 4 | + <!--Make sure the category below is a valid one! See categories.py--> |
| 5 | + <refentryinfo><title>Table Control:Table Queries</title></refentryinfo> |
| 6 | + <refmeta> |
| 7 | + <refentrytitle>ftexists</refentrytitle> |
| 8 | + </refmeta> |
| 9 | + |
| 10 | + <refnamediv> |
| 11 | + <refname>ftexists</refname> |
| 12 | + <refpurpose> |
| 13 | + Query if a given table exists |
| 14 | + </refpurpose> |
| 15 | + </refnamediv> |
| 16 | + |
| 17 | + <refsect1> |
| 18 | + <title>Description</title> |
| 19 | + <para>Plugin opcode in emugens.</para> |
| 20 | + <para> |
| 21 | + Returns 1 if a given index refers to an existing table, |
| 22 | + 0 if the table does not exist. |
| 23 | + Works at i-time if output is an ivariable, at k-time otherwise |
| 24 | + </para> |
| 25 | + </refsect1> |
| 26 | + |
| 27 | + <refsect1> |
| 28 | + <title>Syntax</title> |
| 29 | + <synopsis>iexists <command>ftexists</command> ifn </synopsis> |
| 30 | + <synopsis>kexists <command>ftexists</command> kfn / ifn</synopsis> |
| 31 | + |
| 32 | + </refsect1> |
| 33 | + |
| 34 | + <refsect1> |
| 35 | + <title>Arguments</title> |
| 36 | + <para> |
| 37 | + <emphasis>ifn / kfm</emphasis> - The table to query |
| 38 | + </para> |
| 39 | + </refsect1> |
| 40 | + |
| 41 | + <refsect1> |
| 42 | + <title>Output</title> |
| 43 | + <!-- First list all input and output performance parameters--> |
| 44 | + <para> |
| 45 | + <emphasis>iexists / kexists</emphasis> - 1 if the table exists, 0 otherwise |
| 46 | + </para> |
| 47 | + |
| 48 | + </refsect1> |
| 49 | + <refsect1> |
| 50 | + <!--To add examples, create the csd file in the examples directory, then run:--> |
| 51 | + <!--python csd2docbook.py -f newopcodename.csd--> |
| 52 | + <!--to generate the xml highlighted version used below--> |
| 53 | + <title>Examples</title> |
| 54 | + <para> |
| 55 | + Here is an example of the ftexists opcode. It uses the file <ulink url="examples/ftexists.csd"><citetitle>ftexists.csd</citetitle></ulink>. |
| 56 | + <example> |
| 57 | + <title>Example of the ftexists opcode.</title> |
| 58 | + <xi:include href="examples-xml/ftexists.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 59 | + </example> |
| 60 | + </para> |
| 61 | + </refsect1> |
| 62 | + |
| 63 | + <refsect1> |
| 64 | + <title>See Also</title> |
| 65 | + <!-- it's always good to include a good See Also list --> |
| 66 | + <para> |
| 67 | + <link linkend="ftlen"><citetitle>ftlen</citetitle></link>, |
| 68 | + <link linkend="nsamp"><citetitle>nsamp</citetitle></link>, |
| 69 | + <link linkend="ftsr"><citetitle>ftsr</citetitle></link>, |
| 70 | + <link linkend="ftchnls"><citetitle>ftchnls</citetitle></link>, |
| 71 | + </para> |
| 72 | + </refsect1> |
| 73 | + |
| 74 | + <refsect1> |
| 75 | + <!-- And put your name and other relevant information here--> |
| 76 | + <title>Credits</title> |
| 77 | + <para>By: &nameeduardo; 2019</para> |
| 78 | + <para>New plugin in version 6.14</para> |
| 79 | + </refsect1> |
| 80 | + |
| 81 | + <!--Now remember to add a link from the appropriate category in the Opcode Overview.--> |
| 82 | + <!--Add the entity to manual.xml--> |
| 83 | + <!--Add the entity reference in the appropriate place in opcodes/top.xml--> |
| 84 | + <!--And you're set! Maybe delete the comments as well...--> |
| 85 | + |
| 86 | +</refentry> |
0 commit comments