38 lines
822 B
HTML
38 lines
822 B
HTML
<HTML>
|
|
<HEAD>
|
|
<A HREF="../index.htm">Call of Duty Script Documentation</A>
|
|
<BR>
|
|
<H1>assertex( <value>, <message> )</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 : <value> statement that is asserted to be correct</LI>
|
|
<LI>2 : <message> 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>
|