2010-08-22 13:13:17 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
|
|
<!DOCTYPE funcs
|
|
|
|
SYSTEM '../../../clonk.dtd'>
|
2009-05-09 13:11:51 +00:00
|
|
|
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
|
|
|
|
<funcs>
|
2011-06-30 15:25:22 +00:00
|
|
|
<const>
|
2009-05-09 13:11:51 +00:00
|
|
|
<title>C4V_Bool</title>
|
2010-08-22 13:13:17 +00:00
|
|
|
<category>Variables</category>
|
2018-03-24 22:13:08 +00:00
|
|
|
<version>1.0 OC</version>
|
2010-08-22 13:13:17 +00:00
|
|
|
<syntax><rtype>int</rtype></syntax>
|
2011-07-30 23:32:02 +00:00
|
|
|
<desc>Data type: boolean value (<code>true</code> or <code>false</code>).</desc>
|
2009-05-09 13:11:51 +00:00
|
|
|
<examples>
|
|
|
|
<example>
|
2010-08-22 13:13:17 +00:00
|
|
|
<code><funclink>if</funclink> (<funclink>GetType</funclink>(x) == C4V_Bool) <funclink>Log</funclink>("x=%d", x);</code>
|
|
|
|
<text>Writes x to the log if it is a boolean value.</text>
|
2009-05-09 13:11:51 +00:00
|
|
|
</example>
|
|
|
|
</examples>
|
2010-08-22 13:13:17 +00:00
|
|
|
<related><funclink>GetType</funclink></related>
|
2011-06-30 15:25:22 +00:00
|
|
|
</const>
|
2010-08-22 13:13:17 +00:00
|
|
|
<author>Sven2</author><date>2002-04</date>
|
2009-05-09 13:11:51 +00:00
|
|
|
</funcs>
|