/
ColdC/Functions/
ColdC/Structure/
<head><title>ColdC: Function/Method Reference: dict_contains()</title></head>

<body>

<h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: dict_contains()</h1>

<hr>

<p>
<font size=+1><i>INTEGER</i> <b>dict_contains</b>(<i>DICTIONARY <b>dict</b>, ANY <b>key</b></i>)</font>

<p>This function returns 1 if there is an association in <VAR>dict</VAR>
with the key <VAR>key</VAR>, or 0 otherwise.

<P>Examples:
<blockquote>  
<PRE>
dict_contains(#[["foo", "bar"]], "foo")
=&gt; 1

dict_contains(#[["foo", "bar"]], "bar")
=&gt; 0
</PRE>
</blockquote>

<p><hr size=4><p align=center><i>Last Modified on 24 Mar 1996</i>
<br><i>Copyright &copy; 1995, 1996, Brandon Gillespie</i>
</body>