cod2-sdk/docs/ScriptFunctions/Debug/assertex.htm
2006-04-20 00:00:00 +00:00

38 lines
822 B
HTML

<HTML>
<HEAD>
<A HREF="../index.htm">Call of Duty Script Documentation</A>
<BR>
<H1>assertex( &lt;value&gt;, &lt;message&gt; )</H1>
<BR>
</HEAD>
<BODY>
<H2>Module<PRE>Debug</PRE></H2>
<BR>
<H2>Summary</H2>
<BR>
<PRE>
assert that the given statement is correct. The function will throw a script error if this is false, with the given message
</PRE>
<BR>
<H2>Example</H2>
<BR>
<PRE>
assertex ( enemyInSight == true, "There is no enemy is sight!!" );
</PRE>
<BR>
<H2>Minimum Number of arguments: 2</H2>
<BR>
<UL>
<PRE>
<LI>1 : &lt;value&gt; statement that is asserted to be correct</LI>
<LI>2 : &lt;message&gt; error message</LI>
</PRE></UL>
<H2>Number of optional arguments: 0</H2>
<BR>
<UL>
<PRE>
</PRE></UL>
<BR>
<A HREF="../index.htm">Return to Function List</A><BR>
</BODY>
</HTML>