| 1 |
|
| 2 |
<refentry id="ftexists"> |
| 3 |
<indexterm id="IndexFtexists"><primary>ftexists</primary></indexterm> |
| 4 |
|
| 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 |
|
| 44 |
<para> |
| 45 |
<emphasis>iexists / kexists</emphasis> - 1 if the table exists, 0 otherwise |
| 46 |
</para> |
| 47 |
|
| 48 |
</refsect1> |
| 49 |
<refsect1> |
| 50 |
|
| 51 |
|
| 52 |
|
| 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 |
<para><link linkend="TableQueries"><citetitle>Table Control:Table Queries</citetitle></link></para> |
| 66 |
</refsect1> |
| 67 |
|
| 68 |
<refsect1> |
| 69 |
|
| 70 |
<title>Credits</title> |
| 71 |
<para>By: &nameeduardo; 2019</para> |
| 72 |
<para>New plugin in version 6.14</para> |
| 73 |
</refsect1> |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
</refentry> |