Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check if function returns tr

Status
Not open for further replies.

vovan1415

Programmer
Dec 6, 2001
50
US
How to check if function returns true or false?

Can I use
this:
-----------------------------
function functionname1() {
if (condition1)
{return true;}
else
{return false;}
}

function functionname2() {
if (functionname1=true)
{
\\code...
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top