Calling second function in first function
<p>I have particular function named <code>profilefrm()</code> in which I am checking conditions returning true or false,  I have created another function <code>checkcontacts()</code>. I have called this function in first one. I have successfully returning true or false from second one. I have flow is</p>

<pre><code>function profilefrm(){
if condition1{
// on false 
returning false;
}
checkcontacts();
}

function checkcontacts(){
if condition1{
// on false 
returning false;
}
return true;
}
</code></pre>

<p>But issue is on false condition in second function it is taken as true in first one. and refreshing page accordingly.</p>
