Mar 25, 2003 #1 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... } }
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... } }
Mar 25, 2003 #2 palbano Programmer Oct 9, 1998 4,341 US if (functionname1() == true) ;-) Upvote 0 Downvote
Mar 25, 2003 #3 sim777 Programmer Jan 21, 2003 72 US or, just if (functionname1()) ;-) Upvote 0 Downvote