openclonk/docs/sdk/script/fn/C4V_Int.xml

22 lines
731 B
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
<const>
<title>C4V_Int</title>
<category>Variables</category>
<version>1.0 OC</version>
<syntax><rtype>int</rtype></syntax>
<desc>Data type: integer.</desc>
<examples>
<example>
<code><funclink>if</funclink> (<funclink>GetType</funclink>(x) == C4V_Int) <funclink>Log</funclink>(&quot;x=%d&quot;, x);</code>
<text>Writes x to the log if it is an integer.</text>
</example>
</examples>
<related><funclink>GetType</funclink></related>
</const>
<author>Sven2</author><date>2002-04</date>
</funcs>