var padre=function(){ var hijo=function() { return (1==2)?true:false; } var a = hijo(); if(!a){return a;} //otro proceso return true;}alert(padre());